noflo-assembly-db
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -18,2 +18,3 @@ const Component = require('noflo-assembly').default; | ||
let sent = false; | ||
msg.db(msg.query.table) | ||
@@ -24,6 +25,12 @@ .insert(msg.query.data, returning) | ||
msg.query = undefined; | ||
output.sendDone(msg); | ||
if (!sent) { | ||
output.sendDone(msg); | ||
sent = true; | ||
} | ||
}).catch((err) => { | ||
err.message += ' [in assembly-db/Insert]'; | ||
output.sendDone(fail(msg, err)); | ||
if (!sent) { | ||
err.message += ' [in assembly-db/Insert]'; | ||
output.sendDone(fail(msg, err)); | ||
sent = true; | ||
} | ||
}); | ||
@@ -30,0 +37,0 @@ } |
{ | ||
"name": "noflo-assembly-db", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Reusable database components for NoFlo assembly lines", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7369
139