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

This commit is contained in:
olivermrbl
2021-04-14 11:37:11 +02:00
parent 249b666529
commit 4e025e3501

View File

@@ -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)