Skip to content

Commit

Permalink
feat: allow filtering returns by order_id (#8225)
Browse files Browse the repository at this point in the history
  • Loading branch information
fPolic authored Jul 22, 2024
1 parent 3772b80 commit 223325e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/medusa/src/api/admin/returns/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const AdminGetOrdersParams = createFindParams({
}).merge(
z.object({
id: z.union([z.string(), z.array(z.string())]).optional(),
order_id: z.union([z.string(), z.array(z.string())]).optional(),
status: z.union([z.string(), z.array(z.string())]).optional(),
created_at: createOperatorMap().optional(),
updated_at: createOperatorMap().optional(),
Expand Down

0 comments on commit 223325e

Please sign in to comment.