add console.log
gitea/vn-rfid/pipeline/head This commit looks good
Details
gitea/vn-rfid/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9c60b5b8c1
commit
3d3b5e61f1
|
@ -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]);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue