fix(medusa): accept array of region ids in order filter (#1851)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
Allow an array of region ids in list orders endpoint
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
IsString,
|
||||
ValidateNested,
|
||||
} from "class-validator"
|
||||
import { IsType } from "../utils/validators/is-type"
|
||||
import { Order } from "../models/order"
|
||||
import { DateComparisonOperator } from "./common"
|
||||
|
||||
@@ -86,9 +87,9 @@ export class AdminListOrdersSelector {
|
||||
@IsOptional()
|
||||
email?: string
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
region_id?: string
|
||||
@IsType([String, [String]])
|
||||
region_id?: string | string[]
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
|
||||
Reference in New Issue
Block a user