5130-arc_counter #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "5130-arc_counter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -8,1 +5,4 @@
console.logger.info('PRINTING...');
console.log([Array.from(rfids), arcId, null]);
await con.query(`CALL vn.expeditionPallet_build(JSON_ARRAY(?), ?, ?, @palletId);`, [Array.from(rfids), arcId, null]);
const [[{palletId}]] = await con.query(`SELECT @palletId as palletId;`);
No fa falta seleccionar el id pallet per saber si ha donat error, deuría de ficarse un
try { } catch ...
en la crida avn.expeditionPallet_build
@ -11,2 +10,3 @@
await counter(null, arcId);
if (!palletId)
console.logger.info({error: 'ERROR_CREATING_PALLET', expeditions: rfids});
console.logger.error({error: 'ERROR_CREATING_PALLET', expeditions: rfids});
Ficar dins del catch anterior
@ -13,3 +16,4 @@
stream
.on('data', async value => {
const parsed = await rfidParser(value);
console.log(parsed.codes);
Has oblidat llevar este console.log? Plenara el log del servidor de ruido
@ -9,2 +7,3 @@
await con.query(`CALL vn.expeditionPallet_build(JSON_ARRAY(?), ?, ?, @palletId);`, [Array.from(rfids), arcId, null]);
const [[{palletId}]] = await con.query(`SELECT @palletId as palletId;`);
const palletId = await con.query(`CALL vn.expeditionPallet_build(JSON_ARRAY(?), ?, ?, @palletId);`, [Array.from(codes), arcId, null]);
Que traduzca el error tambien