From abf2c3d81e47c2be3a3e2e6023e10ebc391b2342 Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 6 Apr 2023 14:27:12 +0200 Subject: [PATCH] tets --- src/newPallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newPallet.js b/src/newPallet.js index bd57aa5..27a5b48 100644 --- a/src/newPallet.js +++ b/src/newPallet.js @@ -4,11 +4,11 @@ import t from '../util/translator.js'; export default async(rfids, arcId) => { try { - // console.log(Array.from(rfids), arcId, null); + console.log(Array.from(rfids), arcId, null); await con.query(`CALL vn.expeditionPallet_build(JSON_ARRAY(?), ?, ?, @palletId);`, [Array.from(rfids), arcId, null]); await counter(null, arcId); } catch (error) { console.log(error); - await con.query(`UPDATE vn.arcRead SET error = ?, counter = NULL WHERE id = ?;`, [error, arcId]); + await con.query(`UPDATE vn.arcRead SET error = ?, counter = NULL WHERE id = ?;`, [t(error.sqlMessage), arcId]); } };