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:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user