From 418f2894ff8e0ff216e9618be9d4f4289dda87e4 Mon Sep 17 00:00:00 2001 From: vicent Date: Thu, 9 Mar 2023 13:17:56 +0100 Subject: [PATCH] inserta todo el error en la vn.arcRead --- src/newPallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newPallet.js b/src/newPallet.js index 1de6561..b39bd21 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 = ?;`, [t(error.sqlMessage), arcId]); + await con.query(`UPDATE vn.arcRead SET error = ?, counter = NULL WHERE id = ?;`, [error]); } };