From a648da021f7ec5a3d41e04e12471544c8393cfa7 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 10 Jan 2023 15:57:03 -0600 Subject: [PATCH] fix(server) fix order of asset in shared album to be similar to the actual album (#1293) --- .../immich/src/api-v1/share/shared-link.repository.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/apps/immich/src/api-v1/share/shared-link.repository.ts b/server/apps/immich/src/api-v1/share/shared-link.repository.ts index 48ce80de09..d0ca0edd19 100644 --- a/server/apps/immich/src/api-v1/share/shared-link.repository.ts +++ b/server/apps/immich/src/api-v1/share/shared-link.repository.ts @@ -70,6 +70,16 @@ export class SharedLinkRepository implements ISharedLinkRepository { }, order: { createdAt: 'DESC', + assets: { + createdAt: 'ASC', + }, + album: { + assets: { + assetInfo: { + createdAt: 'ASC', + }, + }, + }, }, }); }