Compare commits

...

1 Commits

Author SHA1 Message Date
Alex Tran
c0de9943e0 fix(server): cannot fetch album with deleted assets 2025-01-25 16:41:32 -06:00

View File

@@ -126,6 +126,7 @@ export class AlbumRepository implements IAlbumRepository {
.select((eb) => eb.fn.max('assets.fileCreatedAt').as('endDate'))
.select((eb) => eb.fn.count('assets.id').as('assetCount'))
.where('albums.id', 'in', ids)
.where('assets.deletedAt', 'is', null)
.groupBy('albums.id')
.execute();