Skip to content

Commit

Permalink
fix(@cubejs-backend/mongobi-driver): TypeError: v.toLowerCase is not …
Browse files Browse the repository at this point in the history
…a function
  • Loading branch information
paveltiunov committed Oct 7, 2020
1 parent 835a3c0 commit 16a15cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-query-orchestrator/driver/BaseDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const DbTypeValueMatcher = {
date: (v) => v instanceof Date || v.toString().match(/^\d\d\d\d-\d\d-\d\d$/),
int: (v) => Number.isInteger(v) || v.toString().match(/^\d+$/),
decimal: (v) => v instanceof Number || v.toString().match(/^\d+(\.\d+)?$/),
boolean: (v) => v === false || v === true || v.toLowerCase() === 'true' || v.toLowerCase === 'false',
boolean: (v) => v === false || v === true || v.toString().toLowerCase() === 'true' || v.toString().toLowerCase() === 'false',
string: (v) => v.length < 256,
text: () => true
};
Expand Down

0 comments on commit 16a15cb

Please sign in to comment.