fix(medusa): accept array of region ids in order filter (#1851)

This commit is contained in:
Sebastian Rindom
2022-07-15 07:41:24 +02:00
committed by GitHub
parent f35ea5156a
commit c148064b4a
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
Allow an array of region ids in list orders endpoint
+3 -2
View File
@@ -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()