1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Sqlite3 fix (#872)

* Reset bind if msg.payload not an array
This commit is contained in:
Ben Hardill 2022-01-05 11:43:16 +00:00 committed by GitHub
parent 3d750a59eb
commit f9b4d2ec01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-sqlite",
"version": "1.0.1",
"version": "1.0.2",
"description": "A sqlite node for Node-RED",
"dependencies": {
"sqlite3": "^5.0.2"

View File

@ -50,6 +50,7 @@ module.exports = function(RED) {
var bind = [];
var doQuery = function(msg) {
bind = []
if (node.sqlquery == "msg.topic") {
if (typeof msg.topic === 'string') {
if (msg.topic.length > 0) {