Browse Source

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

Alex 2 năm trước cách đây
mục cha
commit
a648da021f

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