From d18f08e676ab4099d352117bd03b3769f5356c4e Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 30 Apr 2024 12:15:27 +0200 Subject: [PATCH 1/2] hotFix(addSaleByCode) add userId --- modules/ticket/back/methods/ticket/addSaleByCode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket/addSaleByCode.js b/modules/ticket/back/methods/ticket/addSaleByCode.js index a73628c86..ca3d2cb07 100644 --- a/modules/ticket/back/methods/ticket/addSaleByCode.js +++ b/modules/ticket/back/methods/ticket/addSaleByCode.js @@ -30,7 +30,7 @@ module.exports = Self => { }); Self.addSaleByCode = async(ctx, barcode, quantity, ticketFk, warehouseFk, options) => { - const myOptions = {}; + const myOptions = {userId: ctx.req.accessToken.userId}; let tx; if (typeof options == 'object') From b9267250216b6c84f26f28cacd8581a8d01f7d60 Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 2 May 2024 08:04:44 +0200 Subject: [PATCH 2/2] hotfix: ticket#179915 Fix no worker exists --- db/routines/vn/triggers/ticketPackaging_beforeInsert.sql | 2 -- 1 file changed, 2 deletions(-) diff --git a/db/routines/vn/triggers/ticketPackaging_beforeInsert.sql b/db/routines/vn/triggers/ticketPackaging_beforeInsert.sql index a58955e0d..f47a7ae35 100644 --- a/db/routines/vn/triggers/ticketPackaging_beforeInsert.sql +++ b/db/routines/vn/triggers/ticketPackaging_beforeInsert.sql @@ -4,7 +4,5 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`ticketPackaging_befor FOR EACH ROW BEGIN SET NEW.editorFk = account.myUser_getId(); - SET NEW.workerFk = account.myUser_getId(); - END$$ DELIMITER ;