Comparing version 0.2.0 to 0.2.1
@@ -1,3 +0,7 @@ | ||
#0.1.10 | ||
#0.2.1 | ||
* Fixed incorrect syntax on save where query | ||
#0.2.0 | ||
* Makes where query optional (bug) | ||
@@ -4,0 +8,0 @@ |
@@ -68,3 +68,3 @@ "use strict"; | ||
statement += where ? | ||
(' WHERE' + where.field + ' = ?') : data.id ? | ||
(' WHERE ' + where.field + ' = ?') : data.id ? | ||
(' WHERE id = ?') : ''; | ||
@@ -71,0 +71,0 @@ const queryData = where ? [data, where.value] : data.id ? [data, data.id] : data; |
{ | ||
"name": "classql", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/sorakthunly/classql/issues", |
@@ -77,3 +77,3 @@ const mysql = require('promise-mysql'); | ||
statement += where ? | ||
(' WHERE' + where.field + ' = ?') : data.id ? | ||
(' WHERE ' + where.field + ' = ?') : data.id ? | ||
(' WHERE id = ?') : ''; | ||
@@ -80,0 +80,0 @@ |
Sorry, the diff of this file is not supported yet
49701