tets
gitea/vn-rfid/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-04-06 14:27:12 +02:00
parent 0ef0f2bfc0
commit abf2c3d81e
1 changed files with 2 additions and 2 deletions

View File

@ -4,11 +4,11 @@ import t from '../util/translator.js';
export default async(rfids, arcId) => { export default async(rfids, arcId) => {
try { 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 con.query(`CALL vn.expeditionPallet_build(JSON_ARRAY(?), ?, ?, @palletId);`, [Array.from(rfids), arcId, null]);
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 = ?;`, [error, arcId]); await con.query(`UPDATE vn.arcRead SET error = ?, counter = NULL WHERE id = ?;`, [t(error.sqlMessage), arcId]);
} }
}; };