@bee.js/node 0.0.62 → 0.0.63
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 -0
- package/package.json +1 -1
package/beehive.js
CHANGED
|
@@ -461,6 +461,9 @@ module.exports = function hive(req = {}, res = {}, model = null) {
|
|
|
461
461
|
response: function (sendData = data, action = null, status) {
|
|
462
462
|
let out = { data: sendData, counters, action, error };
|
|
463
463
|
|
|
464
|
+
if (res.headersSent)
|
|
465
|
+
return console.error("ERROR beejs: headers already sent");
|
|
466
|
+
|
|
464
467
|
if (inserts.length) out.inserts = inserts;
|
|
465
468
|
|
|
466
469
|
if (global.configs.debug) out.debug = debug;
|