From 3d3b5e61f1f99e6a570fbd8cd340c36e3d3a6aac Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 9 Mar 2023 13:03:38 +0100 Subject: [PATCH] add console.log --- src/newPallet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/newPallet.js b/src/newPallet.js index d22b624..1de6561 100644 --- a/src/newPallet.js +++ b/src/newPallet.js @@ -4,9 +4,11 @@ import t from '../util/translator.js'; export default async(rfids, arcId) => { try { + // 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 = ?;`, [t(error.sqlMessage), arcId]); } };