mirror of
https://github.com/immich-app/immich.git
synced 2025-06-04 22:24:26 -04:00
fix(server): cannot fetch album with deleted assets
This commit is contained in:
parent
64b92cb24c
commit
c0de9943e0
@ -126,6 +126,7 @@ export class AlbumRepository implements IAlbumRepository {
|
|||||||
.select((eb) => eb.fn.max('assets.fileCreatedAt').as('endDate'))
|
.select((eb) => eb.fn.max('assets.fileCreatedAt').as('endDate'))
|
||||||
.select((eb) => eb.fn.count('assets.id').as('assetCount'))
|
.select((eb) => eb.fn.count('assets.id').as('assetCount'))
|
||||||
.where('albums.id', 'in', ids)
|
.where('albums.id', 'in', ids)
|
||||||
|
.where('assets.deletedAt', 'is', null)
|
||||||
.groupBy('albums.id')
|
.groupBy('albums.id')
|
||||||
.execute();
|
.execute();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user