Skip to content

Commit

Permalink
fix: check existence
Browse files Browse the repository at this point in the history
  • Loading branch information
as1729 committed Sep 18, 2023
1 parent c8ce338 commit 1d4a5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async function buildPaginationParams(args) {
}

function buildTsqExpression(includeKeywords, excludeKeywords) {
if (includeKeywords.length === 0 && excludeKeywords.length === 0) {
if ((includeKeywords && includeKeywords.length === 0) && (excludeKeywords && excludeKeywords.length === 0)) {
return null;
}

Expand Down

0 comments on commit 1d4a5bf

Please sign in to comment.