1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-24 10:37:28 +02:00

fix(server): album sorted incorrectly (#1901)

This commit is contained in:
Alex 2023-02-28 22:57:17 -06:00 committed by GitHub
parent 7411bcbb30
commit 5fd2496774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ export class AlbumRepository implements IAlbumRepository {
const queryProperties: FindManyOptions<AlbumEntity> = {
relations: { sharedUsers: true, assets: true, sharedLinks: true, owner: true },
select: { assets: { id: true } },
order: { assets: { fileCreatedAt: 'ASC' }, createdAt: 'ASC' },
order: { createdAt: 'DESC' },
};
let albumsQuery: Promise<AlbumEntity[]>;