Adds createFromCart and order.completed subscribers

This commit is contained in:
olivermrbl
2020-07-09 18:16:45 +02:00
parent 1e48ab3d74
commit 08cf7c7f2b
8 changed files with 119 additions and 10 deletions
@@ -15,7 +15,7 @@ export default async (req, res) => {
const orderService = req.scope.resolve("orderService")
const cart = await cartService.retrieve(value.cartId)
let order = await orderService.create(cart)
let order = await orderService.createFromCart(cart)
order = await orderService.decorate(order, [
"status",
"fulfillment_status",