You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-08 23:07:06 +02:00
fix(server): searching for multiple people yields false positives (#15447)
This commit is contained in:
@ -248,7 +248,7 @@ export function hasPeopleCte(db: Kysely<DB>, personIds: string[]) {
|
||||
.select('assetId')
|
||||
.where('personId', '=', anyUuid(personIds!))
|
||||
.groupBy('assetId')
|
||||
.having((eb) => eb.fn.count('personId'), '>=', personIds.length),
|
||||
.having((eb) => eb.fn.count('personId').distinct(), '=', personIds.length),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user