0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05:00

fix(server): don't show assets that no longer associate with a face (#16404)

This commit is contained in:
Alex 2025-02-27 17:02:00 -06:00 committed by GitHub
parent 28c664c769
commit 5c879acd5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -260,6 +260,7 @@ export function hasPeople<O>(qb: SelectQueryBuilder<DB, 'assets', O>, personIds:
.selectFrom('asset_faces')
.select('assetId')
.where('personId', '=', anyUuid(personIds!))
.where('deletedAt', 'is', null)
.groupBy('assetId')
.having((eb) => eb.fn.count('personId').distinct(), '=', personIds.length)
.as('has_people'),