From ebbc27b56d162faac96205fdc5fa9b2bd1fe9bed Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 27 Jan 2023 12:45:25 +0100 Subject: [PATCH] feat: set null when stop --- src/newPallet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/newPallet.js b/src/newPallet.js index 537a6c3..4659056 100644 --- a/src/newPallet.js +++ b/src/newPallet.js @@ -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); if (!palletId) console.logger.info({error: 'ERROR_CREATING_PALLET', expeditions: rfids}); };