hotfix(medusa-plugin-brightpearl): use new metadata signature (#316)

* hotfix(medusa-plugin-brightpearl): use new metadata signature

* fix: update signature
This commit is contained in:
Sebastian Rindom
2021-07-15 11:18:44 +02:00
committed by GitHub
parent 2585e958de
commit ef7e52b74b
@@ -1168,13 +1168,13 @@ class BrightpearlService extends BaseService {
return this.claimService_ return this.claimService_
.withTransaction(m) .withTransaction(m)
.createFulfillment(partId, { .createFulfillment(partId, {
goods_out_note: id, metadata: { goods_out_note: id },
}) })
} else { } else {
return this.swapService_ return this.swapService_
.withTransaction(m) .withTransaction(m)
.createFulfillment(partId, { .createFulfillment(partId, {
goods_out_note: id, metadata: { goods_out_note: id },
}) })
} }
} }
@@ -1182,7 +1182,7 @@ class BrightpearlService extends BaseService {
return this.orderService_ return this.orderService_
.withTransaction(m) .withTransaction(m)
.createFulfillment(order.externalRef, lines, { .createFulfillment(order.externalRef, lines, {
goods_out_note: id, metadata: { goods_out_note: id },
}) })
}, "SERIALIZABLE") }, "SERIALIZABLE")
} }