5130-arc_counter #2

Merged
alexm merged 5 commits from 5130-arc_counter into dev 2023-02-06 08:59:03 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit ebbc27b56d - Show all commits

View File

@ -1,9 +1,11 @@
import con from '../db/connect.js';
import counter from './counter.js';
export default async(rfids, arcId) => {
console.logger.info('PRINTING...');
const palletId = await con.query(`CALL vn.expeditionPallet_build(JSON_ARRAY(?), ?, ?, @palletId);`, [Array.from(codes), arcId, null]);
await counter(null, arcId);
alexm marked this conversation as resolved Outdated
Outdated
Review

No fa falta seleccionar el id pallet per saber si ha donat error, deuría de ficarse un try { } catch ... en la crida a vn.expeditionPallet_build

No fa falta seleccionar el id pallet per saber si ha donat error, deuría de ficarse un `try { } catch ...` en la crida a `vn.expeditionPallet_build`
if (!palletId)
console.logger.info({error: 'ERROR_CREATING_PALLET', expeditions: rfids});
};