From 632662c4404496b6519f019d947f08345b8fd57c Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 30 May 2023 10:49:10 +0200 Subject: [PATCH] refs #5595 added userId in makeInvoice --- modules/ticket/back/methods/ticket/makeInvoice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket/makeInvoice.js b/modules/ticket/back/methods/ticket/makeInvoice.js index f2536f1b08..ee82b874fc 100644 --- a/modules/ticket/back/methods/ticket/makeInvoice.js +++ b/modules/ticket/back/methods/ticket/makeInvoice.js @@ -28,7 +28,7 @@ module.exports = function(Self) { const date = Date.vnNew(); date.setHours(0, 0, 0, 0); - const myOptions = {userId}; + const myOptions = {userId: ctx.req.accessToken.userId}; let tx; if (typeof options == 'object')