From ef7e52b74bf6e0fe08cecbb5180ad46ab9f4fbd9 Mon Sep 17 00:00:00 2001 From: Sebastian Rindom Date: Thu, 15 Jul 2021 11:18:44 +0200 Subject: [PATCH] hotfix(medusa-plugin-brightpearl): use new metadata signature (#316) * hotfix(medusa-plugin-brightpearl): use new metadata signature * fix: update signature --- .../medusa-plugin-brightpearl/src/services/brightpearl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/medusa-plugin-brightpearl/src/services/brightpearl.js b/packages/medusa-plugin-brightpearl/src/services/brightpearl.js index c2d273ed8d..0488964778 100644 --- a/packages/medusa-plugin-brightpearl/src/services/brightpearl.js +++ b/packages/medusa-plugin-brightpearl/src/services/brightpearl.js @@ -1168,13 +1168,13 @@ class BrightpearlService extends BaseService { return this.claimService_ .withTransaction(m) .createFulfillment(partId, { - goods_out_note: id, + metadata: { goods_out_note: id }, }) } else { return this.swapService_ .withTransaction(m) .createFulfillment(partId, { - goods_out_note: id, + metadata: { goods_out_note: id }, }) } } @@ -1182,7 +1182,7 @@ class BrightpearlService extends BaseService { return this.orderService_ .withTransaction(m) .createFulfillment(order.externalRef, lines, { - goods_out_note: id, + metadata: { goods_out_note: id }, }) }, "SERIALIZABLE") }