@bee.js/node 0.0.73 → 0.0.74

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 +5 -5
  2. package/package.json +1 -1
package/beehive.js CHANGED
@@ -47,15 +47,15 @@ module.exports = function hive(req = {}, res = {}, model = null) {
47
47
  log(SQL);
48
48
  log(binds.join(","));
49
49
 
50
- const isConnReset = _error?.message?.includes("ECONNRESET");
51
-
52
- if (isConnReset && retryCount < MAX_RETRIES) {
53
- log("### DB retry after ECONNRESET...");
50
+ if (_error?.message?.includes("ECONNRESET") && retryCount < MAX_RETRIES) {
51
+ log(
52
+ "####################### DB retry after ECONNRESET... #######################"
53
+ );
54
54
  global.beeDBPool = beeORM.createPool(global.configs);
55
55
  return await dbExec(SQL, binds, params, retryCount + 1);
56
56
  }
57
57
 
58
- throw _error; // error after MAX_RETRIES
58
+ return [];
59
59
  } finally {
60
60
  if (global.configs.debug) debug.push(SQL);
61
61
  if (global.configs.debug && binds) debug.push(binds);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bee.js/node",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "A JavaScript framework for making Node.js API´s",
5
5
  "main": "index.js",
6
6
  "scripts": {