From 57e26888cc1ff998b682208ce65f603fdf6f101b Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Thu, 19 Dec 2024 16:43:31 +0100 Subject: [PATCH] edf: [#128] generate order returns order id --- backend/web/server/plugins/entreprisedufutur/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/web/server/plugins/entreprisedufutur/actions.js b/backend/web/server/plugins/entreprisedufutur/actions.js index e1bf7f8fe..d37dc7826 100644 --- a/backend/web/server/plugins/entreprisedufutur/actions.js +++ b/backend/web/server/plugins/entreprisedufutur/actions.js @@ -176,7 +176,7 @@ const generateOrder = async ({value,nb_tickets}, user) => { await OrderTicket.create({order: order._id, status}) } } - return value + return order._id } addAction('generate_order', generateOrder)