@bee.js/node 0.0.72 → 0.0.73
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 +3 -2
- package/package.json +1 -1
package/beehive.js
CHANGED
|
@@ -44,7 +44,8 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
44
44
|
} catch (_error) {
|
|
45
45
|
log("####################### DB ERROR #######################");
|
|
46
46
|
log(_error);
|
|
47
|
-
log(
|
|
47
|
+
log(SQL);
|
|
48
|
+
log(binds.join(","));
|
|
48
49
|
|
|
49
50
|
const isConnReset = _error?.message?.includes("ECONNRESET");
|
|
50
51
|
|
|
@@ -274,7 +275,7 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
274
275
|
),
|
|
275
276
|
].join(",");
|
|
276
277
|
|
|
277
|
-
script[0]["where"].push(`${model.table}.${field} IN(${array})`);
|
|
278
|
+
script[0]["where"].push(`${model.table}.${field} IN(${array ?? "null"})`);
|
|
278
279
|
|
|
279
280
|
return this;
|
|
280
281
|
},
|