fix mysql node error scope

This commit is contained in:
Dave Conway-Jones 2022-07-22 10:18:37 +01:00
parent 7a5c39ce7b
commit a7b9380f25
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ module.exports = function(RED) {
});
}
else {
node.error(RED._("mysql.errors.notconfigured"));
this.error(RED._("mysql.errors.notconfigured"));
}
}
RED.nodes.registerType("mysql",MysqlDBNodeIn);

View File

@ -1,6 +1,6 @@
{
"name": "node-red-node-mysql",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Node-RED node to read and write to a MySQL database",
"dependencies": {
"mysql2": "^2.3.3"