mirror of
https://github.com/docmost/docmost.git
synced 2026-08-25 15:57:11 +08:00
fix: match any selected label instead of requiring all
This commit is contained in:
@@ -96,13 +96,7 @@ export class SearchService {
|
|||||||
this.db
|
this.db
|
||||||
.selectFrom('pageLabels')
|
.selectFrom('pageLabels')
|
||||||
.select('pageId')
|
.select('pageId')
|
||||||
.where('labelId', 'in', labelIds)
|
.where('labelId', 'in', labelIds),
|
||||||
.groupBy('pageId')
|
|
||||||
.having(
|
|
||||||
sql<number>`count(distinct "label_id")`,
|
|
||||||
'=',
|
|
||||||
labelIds.length,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.where('deletedAt', 'is', null)
|
.where('deletedAt', 'is', null)
|
||||||
|
|||||||
+1
-1
Submodule apps/server/src/ee updated: 70976d9632...add0054e96
Reference in New Issue
Block a user