From 00f65a53dd74ed9fb69c5a5b8a2710248d2f31e2 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 23 Jun 2023 09:34:55 -0500 Subject: [PATCH] fix(server): Fix person's assets retrival order (#2920) --- server/src/infra/repositories/person.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/infra/repositories/person.repository.ts b/server/src/infra/repositories/person.repository.ts index 1089168094..3455109bce 100644 --- a/server/src/infra/repositories/person.repository.ts +++ b/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,