Skip to content

Commit

Permalink
fix(medusa): GET return/:id (#8226)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-r-l-rodrigues authored Jul 22, 2024
1 parent 0d2e7be commit 037ddd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/medusa/src/api/admin/returns/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ export const GET = async (
req: AuthenticatedMedusaRequest,
res: MedusaResponse
) => {
const { id } = req.params

const remoteQuery = req.scope.resolve(ContainerRegistrationKeys.REMOTE_QUERY)

const queryObject = remoteQueryObjectFromString({
entryPoint: "return",
variables: {
id,
filters: {
...req.filterableFields,
},
Expand Down

0 comments on commit 037ddd2

Please sign in to comment.