Browse Source

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

Alex 2 years ago
parent
commit
a648da021f
1 changed files with 10 additions and 0 deletions
  1. 10 0
      server/apps/immich/src/api-v1/share/shared-link.repository.ts

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