multi-db-orm 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/engines/sqlitedb.js
CHANGED
|
@@ -158,7 +158,7 @@ class SQLiteDB extends MultiDbORM {
|
|
|
158
158
|
|
|
159
159
|
var where = ''
|
|
160
160
|
for (var key in filter) {
|
|
161
|
-
where = where + `${key} = ${filter[key]} AND `
|
|
161
|
+
where = where + `${key} = '${filter[key]}' AND `
|
|
162
162
|
}
|
|
163
163
|
where = where + " 1 ";
|
|
164
164
|
var query = `DELETE FROM ${modelname} WHERE ${where};`
|