Skip to content

Commit

Permalink
fix(server): don't show assets that no longer associate with a face (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Feb 27, 2025
1 parent 28c664c commit 5c879ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/entities/asset.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 5c879ac

Please sign in to comment.