High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(server): don't show assets that no longer associate with a face (#16404)
Alex5c879acd5bd0
diff --git a/server/src/entities/asset.entity.ts b/server/src/entities/asset.entity.tsindex 7345d9a2e6..c01410adc9 100644--- a/server/src/entities/asset.entity.ts+++ b/server/src/entities/asset.entity.ts@@ -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'),