fix(server): Fix person's assets retrival order (#2920)

This commit is contained in:
Alex 2023-06-23 09:34:55 -05:00 committed by GitHub
parent 751922990f
commit 00f65a53dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ export class PersonRepository implements IPersonRepository {
exifInfo: true,
},
order: {
createdAt: 'ASC',
fileCreatedAt: 'desc',
},
// TODO: remove after either (1) pagination or (2) time bucket is implemented for this query
take: 1000,