hotfix(medusa-plugin-brightpearl): Use order id in sales order endpoint
This commit is contained in:
1 parent
249b666529
commit
4e025e3501
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user