mirror of
https://github.com/immich-app/immich.git
synced 2025-04-14 12:06:25 +02:00
fix(server): don't show assets that no longer associate with a face (#16404)
This commit is contained in:
parent
28c664c769
commit
5c879acd5b
1 changed files with 1 additions and 0 deletions
|
@ -260,6 +260,7 @@ export function hasPeople<O>(qb: SelectQueryBuilder<DB, 'assets', O>, personIds:
|
||||||
.selectFrom('asset_faces')
|
.selectFrom('asset_faces')
|
||||||
.select('assetId')
|
.select('assetId')
|
||||||
.where('personId', '=', anyUuid(personIds!))
|
.where('personId', '=', anyUuid(personIds!))
|
||||||
|
.where('deletedAt', 'is', null)
|
||||||
.groupBy('assetId')
|
.groupBy('assetId')
|
||||||
.having((eb) => eb.fn.count('personId').distinct(), '=', personIds.length)
|
.having((eb) => eb.fn.count('personId').distinct(), '=', personIds.length)
|
||||||
.as('has_people'),
|
.as('has_people'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue