@bee.js/node 0.0.34 → 0.0.35

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.
Files changed (2) hide show
  1. package/beehive.js +3 -0
  2. package/package.json +1 -1
package/beehive.js CHANGED
@@ -378,6 +378,9 @@ module.exports = function hive(req = {}, res = {}, model = null) {
378
378
 
379
379
  SQL = 'DELETE FROM ' + q(model.table)
380
380
  SQL += beeORM.modelSqlWhere(model, ids, req.middleware)
381
+ SQL += script[0]['where'].length
382
+ ? (!ids.length ? ' WHERE ' : ' AND ') + script[0]['where'].join(" AND ")
383
+ : ''
381
384
 
382
385
  data = await dbExec(SQL)
383
386
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bee.js/node",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "description": "A JavaScript framework for making Node.js API´s",
5
5
  "main": "index.js",
6
6
  "scripts": {