fix: match any selected label instead of requiring all

This commit is contained in:
Philipinho
2026-08-24 23:20:46 +01:00
parent 875bc42610
commit 94183b40f4
2 changed files with 2 additions and 8 deletions
@@ -96,13 +96,7 @@ export class SearchService {
this.db
.selectFrom('pageLabels')
.select('pageId')
.where('labelId', 'in', labelIds)
.groupBy('pageId')
.having(
sql<number>`count(distinct "label_id")`,
'=',
labelIds.length,
),
.where('labelId', 'in', labelIds),
),
)
.where('deletedAt', 'is', null)