From 2fc39d54a0574fd4d22aababd91dded92e6e2dba Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 30 Jan 2024 13:09:15 +0100 Subject: [PATCH] refs #6318 fix code --- modules/ticket/back/methods/ticket-request/confirm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket-request/confirm.js b/modules/ticket/back/methods/ticket-request/confirm.js index e782bd66e..00310f33c 100644 --- a/modules/ticket/back/methods/ticket-request/confirm.js +++ b/modules/ticket/back/methods/ticket-request/confirm.js @@ -63,7 +63,7 @@ module.exports = Self => { const isAvailable = itemStock.available > 0; - if (!isAvailable || !ctx.args.quantity) + if (!isAvailable) throw new UserError(`This item is not available`); if (request.saleFk)