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]); } };