mirror of
https://github.com/immich-app/immich.git
synced 2025-01-19 18:26:46 +01:00
fix(server): album sorted incorrectly (#1901)
This commit is contained in:
parent
7411bcbb30
commit
5fd2496774
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ export class AlbumRepository implements IAlbumRepository {
|
||||||
const queryProperties: FindManyOptions<AlbumEntity> = {
|
const queryProperties: FindManyOptions<AlbumEntity> = {
|
||||||
relations: { sharedUsers: true, assets: true, sharedLinks: true, owner: true },
|
relations: { sharedUsers: true, assets: true, sharedLinks: true, owner: true },
|
||||||
select: { assets: { id: true } },
|
select: { assets: { id: true } },
|
||||||
order: { assets: { fileCreatedAt: 'ASC' }, createdAt: 'ASC' },
|
order: { createdAt: 'DESC' },
|
||||||
};
|
};
|
||||||
|
|
||||||
let albumsQuery: Promise<AlbumEntity[]>;
|
let albumsQuery: Promise<AlbumEntity[]>;
|
||||||
|
|
Loading…
Reference in a new issue