diff --git a/packages/server/src/route/util.ts b/packages/server/src/route/util.ts index bdc39f0..8266aab 100644 --- a/packages/server/src/route/util.ts +++ b/packages/server/src/route/util.ts @@ -7,7 +7,7 @@ export function ParseQueryNumber(s: string[] | string | undefined): number | und } export function ParseQueryArray(s: string[] | string | undefined) { const input = s ?? []; - const r = Array.isArray(input) ? input : [input]; + const r = Array.isArray(input) ? input : input.split(","); return r.map((x) => decodeURIComponent(x)); } export function ParseQueryArgString(s: string[] | string | undefined) {