From aae92d5447c067fce9889403da30f3abcdf5be23 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 7 Nov 2025 15:08:26 +0200 Subject: [PATCH] chore(medusa): fix query http type parameter for get claim route (#13974) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary **What** — What changes are introduced in this PR? Use correct HTTP type parameter for the get claim API route **Why** — Why are these changes relevant or necessary? *Please provide answer here* **How** — How have these changes been implemented? *Please provide answer here* **Testing** — How have these changes been tested, or how can the reviewer test the feature? *Please provide answer here* --- ## Examples Provide examples or code snippets that demonstrate how this feature works, or how it can be used in practice. This helps with documentation and ensures maintainers can quickly understand and verify the change. ```ts // Example usage ``` --- ## Checklist Please ensure the following before requesting a review: - [ ] I have added a **changeset** for this PR - Every non-breaking change should be marked as a **patch** - To add a changeset, run `yarn changeset` and follow the prompts - [ ] The changes are covered by relevant **tests** - [ ] I have verified the code works as intended locally - [ ] I have linked the related issue(s) if applicable --- ## Additional Context Add any additional context, related issues, or references that might help the reviewer understand this PR. --- .changeset/hungry-pillows-move.md | 5 +++++ packages/medusa/src/api/admin/claims/[id]/route.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/hungry-pillows-move.md diff --git a/.changeset/hungry-pillows-move.md b/.changeset/hungry-pillows-move.md new file mode 100644 index 0000000000..e2577f8843 --- /dev/null +++ b/.changeset/hungry-pillows-move.md @@ -0,0 +1,5 @@ +--- +"@medusajs/medusa": patch +--- + +chore(medusa): fix query http type parameter for get claim route diff --git a/packages/medusa/src/api/admin/claims/[id]/route.ts b/packages/medusa/src/api/admin/claims/[id]/route.ts index 960b9679a3..bfdb049125 100644 --- a/packages/medusa/src/api/admin/claims/[id]/route.ts +++ b/packages/medusa/src/api/admin/claims/[id]/route.ts @@ -7,7 +7,7 @@ import { MedusaError } from "@medusajs/framework/utils" import { AdminClaimResponse, HttpTypes } from "@medusajs/framework/types" export const GET = async ( - req: AuthenticatedMedusaRequest, + req: AuthenticatedMedusaRequest<{}, HttpTypes.SelectParams>, res: MedusaResponse ) => { const claim = await refetchEntity({