Browse Source

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

Alex 2 năm trước cách đây
mục cha
commit
00f65a53dd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,