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.
@@ -6,7 +6,10 @@ name: NPM Publish
6
6
  on:
7
7
  release:
8
8
  types: [created]
9
-
9
+ push:
10
+ branches:
11
+ - "master"
12
+
10
13
  jobs:
11
14
  publish:
12
15
  runs-on: ubuntu-latest
@@ -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};`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-db-orm",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "CRUD , Backup , Restore and Migration library for multiple databases",
5
5
  "main": "index.js",
6
6
  "dependencies": {