mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
- remove inAlbums groupBy clause
This commit is contained in:
@@ -235,7 +235,6 @@ export function inAlbums<O>(qb: SelectQueryBuilder<DB, 'assets', O>, albumIds: s
|
|||||||
.selectFrom('albums_assets_assets')
|
.selectFrom('albums_assets_assets')
|
||||||
.select('assetsId')
|
.select('assetsId')
|
||||||
.where('albumsId', '=', anyUuid(albumIds!))
|
.where('albumsId', '=', anyUuid(albumIds!))
|
||||||
.groupBy('assetsId')
|
|
||||||
.as('has_album'),
|
.as('has_album'),
|
||||||
(join) => join.onRef('has_album.assetsId', '=', 'assets.id'),
|
(join) => join.onRef('has_album.assetsId', '=', 'assets.id'),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user