Skip to content

High performance self-hosted photo and video management solution.

fix(server) fix order of asset in shared album to be similar to the actual album (#1293)

Alexa648da021f7e
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',
+ },
+ },
+ },
},
});
}