Browse Source

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

Alex 2 years ago
parent
commit
00f65a53dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/src/infra/repositories/person.repository.ts

+ 1 - 1
server/src/infra/repositories/person.repository.ts

@@ -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,