Skip to content

Commit

Permalink
fix(medusa-plugin-brightpearl): Missing discounts rule relation (#5390)
Browse files Browse the repository at this point in the history
Co-authored-by: Oli Juhl <[email protected]>
  • Loading branch information
josipmatichr and olivermrbl authored Oct 18, 2023
1 parent 9c362f7 commit 04e9dd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tender-doors-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"medusa-plugin-brightpearl": patch
---

fix(medusa-plugin-brightpearl): Missing discounts rule relation
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class OrderSubscriber {
registerReturn = async (data) => {
const { id, return_id } = data

const relations = ["discounts", "region", "swaps", "payments"]
const relations = ["discounts", "discounts.rule", "region", "swaps", "payments"]
if (this.featureFlagRouter.isFeatureEnabled("sales_channels")) {
relations.push("sales_channel")
}
Expand Down

0 comments on commit 04e9dd6

Please sign in to comment.