From 0ef0f2bfc018f185c5cb665e6acb9ac4429f446f Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 30 Mar 2023 13:43:03 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20a=C3=B1adido=20segunda=20parametro=20y?= =?UTF-8?q?=20cambiado=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yml | 18 +++++++++--------- src/newPallet.js | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config.yml b/config.yml index 60dde7d..4fb5897 100644 --- a/config.yml +++ b/config.yml @@ -1,14 +1,14 @@ arcId: 1 port: 1234 -ip: 10.1.16.1 +ip: 1.2.3.4 env: dev -interval: 1000 +interval: 3000 reconnectInterval: 5000 +counterInterval: 1000 db: - host: db.verdnatura.es - port: 3308 - database: vn - user: arc - password: c57180a7bMD% - multipleStatements: true - insecureAuth: true \ No newline at end of file + host: host + port: 3307 + user: user + password: password + multipleStatements: false + insecureAuth: true diff --git a/src/newPallet.js b/src/newPallet.js index b39bd21..bd57aa5 100644 --- a/src/newPallet.js +++ b/src/newPallet.js @@ -9,6 +9,6 @@ export default async(rfids, arcId) => { await counter(null, arcId); } catch (error) { console.log(error); - await con.query(`UPDATE vn.arcRead SET error = ?, counter = NULL WHERE id = ?;`, [error]); + await con.query(`UPDATE vn.arcRead SET error = ?, counter = NULL WHERE id = ?;`, [error, arcId]); } };