mirror of
https://github.com/immich-app/immich.git
synced 2026-02-09 19:29:27 +03:00
Merge branch 'feat/search-filter-album/server' into feat/search-filter-album/web
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