@bee.js/node 0.0.89 → 0.0.91
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/beehive.js +2 -2
- package/package.json +1 -1
package/beehive.js
CHANGED
|
@@ -253,7 +253,7 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
253
253
|
},
|
|
254
254
|
|
|
255
255
|
whereIf: function (condition, where, binds) {
|
|
256
|
-
if (!condition) return;
|
|
256
|
+
if (!condition) return this;
|
|
257
257
|
|
|
258
258
|
script[0]["where"].push(typeof where == "function" ? where() : where);
|
|
259
259
|
|
|
@@ -266,7 +266,7 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
266
266
|
whereIn: function (field, array = []) {
|
|
267
267
|
const values = {};
|
|
268
268
|
|
|
269
|
-
array.map((row) => {
|
|
269
|
+
array.map?.((row) => {
|
|
270
270
|
const val = row[field];
|
|
271
271
|
|
|
272
272
|
if (!!!val) return;
|