Skip to content

Commit

Permalink
fix where keys convert
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed Mar 10, 2019
1 parent 0a74e85 commit 463b930
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod.ts
Expand Up @@ -66,6 +66,7 @@ export function where(where: Object): string {
"WHERE " +
Object.keys(where)
.map(key => {
key = camel2line(key);
let val = where[key];
// If the type of field value is a function, treat it as a custom OP
if (typeof val === "function")
Expand Down

0 comments on commit 463b930

Please sign in to comment.