ソースを参照

Sort album assets from newest to oldest (#3444)

cfitzw 2 年 前
コミット
7147486b6a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      server/src/immich/api-v1/album/album-repository.ts

+ 1 - 1
server/src/immich/api-v1/album/album-repository.ts

@@ -36,7 +36,7 @@ export class AlbumRepository implements IAlbumRepository {
       },
       order: {
         assets: {
-          fileCreatedAt: 'ASC',
+          fileCreatedAt: 'DESC',
         },
       },
     });