mirror of
https://github.com/immich-app/immich.git
synced 2026-02-10 19:07:55 +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')
|
||||
.select('assetsId')
|
||||
.where('albumsId', '=', anyUuid(albumIds!))
|
||||
.groupBy('assetsId')
|
||||
.as('has_album'),
|
||||
(join) => join.onRef('has_album.assetsId', '=', 'assets.id'),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user