1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 12:26:47 +01:00

chore(server): Enhancement for query to get assets for each recognized person (#2475)

This commit is contained in:
Alex 2023-05-18 22:59:57 -05:00 committed by GitHub
parent 59f6b2ff2e
commit 790e43dd6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,7 @@ export class PersonRepository implements IPersonRepository {
personId, personId,
}, },
isVisible: true, isVisible: true,
isArchived: false,
}, },
relations: { relations: {
faces: { faces: {
@ -63,7 +64,7 @@ export class PersonRepository implements IPersonRepository {
createdAt: 'ASC', createdAt: 'ASC',
}, },
// TODO: remove after either (1) pagination or (2) time bucket is implemented for this query // TODO: remove after either (1) pagination or (2) time bucket is implemented for this query
take: 3000, take: 1000,
}); });
} }