Skip to content

Commit

Permalink
Fix(filter-query): bug in not equals boolean parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Jul 11, 2024
1 parent 1dc0ec9 commit 8c8430f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mongoose-filter-query/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const mapValue = (value) => {
} else if (value.startsWith("ne(")) {
value = parseOperatorValue(value, "ne");
if (value === "true" || value === "false") {
return { $eq: value === "true" };
return { $ne: value === "true" };
}
return { $ne: value };
} else if (value.startsWith("gt(")) {
Expand Down

0 comments on commit 8c8430f

Please sign in to comment.