hotFix(addSaleByCode) add userId
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-04-30 12:15:27 +02:00
parent d44b8f7c9a
commit d18f08e676
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module.exports = Self => {
}); });
Self.addSaleByCode = async(ctx, barcode, quantity, ticketFk, warehouseFk, options) => { Self.addSaleByCode = async(ctx, barcode, quantity, ticketFk, warehouseFk, options) => {
const myOptions = {}; const myOptions = {userId: ctx.req.accessToken.userId};
let tx; let tx;
if (typeof options == 'object') if (typeof options == 'object')