hotfix(medusa-plugin-brightpearl): Use order id in sales order endpoint
This commit is contained in:
@@ -65,7 +65,7 @@ export default (container) => {
|
|||||||
throw new Error("Already sent to BP")
|
throw new Error("Already sent to BP")
|
||||||
}
|
}
|
||||||
|
|
||||||
await brightpearlService.createSalesOrder(order)
|
await brightpearlService.createSalesOrder(order.id)
|
||||||
res.sendStatus(200)
|
res.sendStatus(200)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
res.status(400).json(err)
|
res.status(400).json(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user