不要怂,就是干,撸起袖子干!

Commit b49c1601 by sdepold

formatting

1 parent 7ffacfe2
Showing with 3 additions and 2 deletions
...@@ -38,8 +38,9 @@ module.exports = (function() { ...@@ -38,8 +38,9 @@ module.exports = (function() {
values: Utils._.values(attrValueHash).map(function(value){ values: Utils._.values(attrValueHash).map(function(value){
//SQLite has no type boolean : //SQLite has no type boolean :
if(typeof value == "boolean") if (typeof value === "boolean") {
value = value ? 1:0; value = value ? 1 : 0;
}
return Utils.escape((value instanceof Date) ? Utils.toSqlDate(value) : value) return Utils.escape((value instanceof Date) ? Utils.toSqlDate(value) : value)
}).join(",") }).join(",")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!