hotfix(medusa-plugin-brightpearl): Use order id in sales order endpoint (#236)

This commit is contained in:
Oliver Windall Juhl
2021-04-14 12:33:09 +02:00
committed by GitHub
parent 249b666529
commit 345b0e6305
@@ -65,7 +65,7 @@ export default (container) => {
throw new Error("Already sent to BP")
}
await brightpearlService.createSalesOrder(order)
await brightpearlService.createSalesOrder(order.id)
res.sendStatus(200)
} catch (err) {
res.status(400).json(err)