mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): searching for multiple people yields false positives (#15447)
This commit is contained in:
parent
97ec3b147c
commit
70809c1465
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ export function hasPeopleCte(db: Kysely<DB>, personIds: string[]) {
|
||||||
.select('assetId')
|
.select('assetId')
|
||||||
.where('personId', '=', anyUuid(personIds!))
|
.where('personId', '=', anyUuid(personIds!))
|
||||||
.groupBy('assetId')
|
.groupBy('assetId')
|
||||||
.having((eb) => eb.fn.count('personId'), '>=', personIds.length),
|
.having((eb) => eb.fn.count('personId').distinct(), '=', personIds.length),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue