sqlite small doc update, and bump dep library

This commit is contained in:
Dave Conway-Jones
2018-12-19 19:37:13 +00:00
parent ca0b01d10e
commit 2ca330fcb8
3 changed files with 4 additions and 4 deletions

View File

@@ -106,7 +106,7 @@ module.exports = function(RED) {
if (node.sqlquery == "prepared"){
if (typeof node.sql === 'string' && typeof msg.params !== "undefined" && typeof msg.params === "object") {
if (node.sql.length > 0) {
node.mydbConfig.db.all(node.sql, msg.params, function(err, row) {
node.mydbConfig.db.all(node.sql, msg.params, function(err, row) {
if (err) { node.error(err,msg); }
else {
msg.payload = row;