From 8e708aaddf85a78b73d81844812dd8d60fcf99b1 Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Tue, 13 Jun 2023 19:20:20 +0200 Subject: [PATCH] fix(medusa): Remove items.refundable from the order default store fields (#4294) * fix(medusa): Remove items.refundable from the order default store fields * Create khaki-socks-thank.md --------- Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com> --- .changeset/khaki-socks-thank.md | 5 +++++ packages/medusa/src/api/routes/store/orders/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/khaki-socks-thank.md diff --git a/.changeset/khaki-socks-thank.md b/.changeset/khaki-socks-thank.md new file mode 100644 index 0000000000..6cb025ed75 --- /dev/null +++ b/.changeset/khaki-socks-thank.md @@ -0,0 +1,5 @@ +--- +"@medusajs/medusa": patch +--- + +fix(medusa): Remove items.refundable from the order default store fields diff --git a/packages/medusa/src/api/routes/store/orders/index.ts b/packages/medusa/src/api/routes/store/orders/index.ts index 6e8a3830a1..ab86fb08c1 100644 --- a/packages/medusa/src/api/routes/store/orders/index.ts +++ b/packages/medusa/src/api/routes/store/orders/index.ts @@ -108,7 +108,6 @@ export const defaultStoreOrdersFields = [ "currency_code", "tax_rate", "created_at", - "items.refundable", ] as (keyof Order)[] export const allowedStoreOrdersFields = [ @@ -124,6 +123,7 @@ export const allowedStoreOrdersFields = [ "refundable_amount", "gift_card_total", "gift_card_tax_total", + "items.refundable", ] /**