Skip to content

Commit

Permalink
edf: [premieroctet#128] generate order returns order id
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien-Wappizy committed Dec 19, 2024
1 parent 4f6dcfe commit 57e2688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/web/server/plugins/entreprisedufutur/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 57e2688

Please sign in to comment.