fix: añadido segunda parametro y cambiado config
gitea/vn-rfid/pipeline/head This commit looks good
Details
gitea/vn-rfid/pipeline/head This commit looks good
Details
This commit is contained in:
parent
83af061bf0
commit
0ef0f2bfc0
16
config.yml
16
config.yml
|
@ -1,14 +1,14 @@
|
||||||
arcId: 1
|
arcId: 1
|
||||||
port: 1234
|
port: 1234
|
||||||
ip: 10.1.16.1
|
ip: 1.2.3.4
|
||||||
env: dev
|
env: dev
|
||||||
interval: 1000
|
interval: 3000
|
||||||
reconnectInterval: 5000
|
reconnectInterval: 5000
|
||||||
|
counterInterval: 1000
|
||||||
db:
|
db:
|
||||||
host: db.verdnatura.es
|
host: host
|
||||||
port: 3308
|
port: 3307
|
||||||
database: vn
|
user: user
|
||||||
user: arc
|
password: password
|
||||||
password: c57180a7bMD%
|
multipleStatements: false
|
||||||
multipleStatements: true
|
|
||||||
insecureAuth: true
|
insecureAuth: true
|
|
@ -9,6 +9,6 @@ export default async(rfids, arcId) => {
|
||||||
await counter(null, arcId);
|
await counter(null, arcId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(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]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue