فهرست منبع

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

Alex 2 سال پیش
والد
کامیت
00f65a53dd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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,