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)