mirror of
https://github.com/immich-app/immich.git
synced 2026-02-10 19:07:55 +03:00
- consider inAlbums as OR
This commit is contained in:
@@ -236,7 +236,6 @@ export function inAlbums<O>(qb: SelectQueryBuilder<DB, 'assets', O>, albumIds: s
|
||||
.select('assetsId')
|
||||
.where('albumsId', '=', anyUuid(albumIds!))
|
||||
.groupBy('assetsId')
|
||||
.having((eb) => eb.fn.count('albumsId').distinct(), '=', albumIds.length)
|
||||
.as('has_album'),
|
||||
(join) => join.onRef('has_album.assetsId', '=', 'assets.id'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user