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