inserta todo el error en la vn.arcRead
gitea/vn-rfid/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-03-09 13:17:56 +01:00
parent 3d3b5e61f1
commit 418f2894ff
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ?;`, [t(error.sqlMessage), arcId]); await con.query(`UPDATE vn.arcRead SET error = ?, counter = NULL WHERE id = ?;`, [error]);
} }
}; };