Skip to content

Commit

Permalink
fix: use AND operators when searching for multiple labels
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Nov 26, 2024
1 parent bcb9441 commit 9868d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphql/operations/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default async function (parent, args) {
}

if (where?.labels_in?.length) {
searchSql += ' AND JSON_OVERLAPS(p.labels, ?)';
searchSql += ' AND JSON_CONTAINS(p.labels, ?)';
params.push(JSON.stringify(where.labels_in));
}

Expand Down

0 comments on commit 9868d1e

Please sign in to comment.