diff --git a/packages/client/news/6034.bugfix b/packages/client/news/6034.bugfix new file mode 100644 index 0000000000..c4ca1815a9 --- /dev/null +++ b/packages/client/news/6034.bugfix @@ -0,0 +1 @@ +Fixed querystring search query type @pnicolli diff --git a/packages/client/src/validation/querystring-search.ts b/packages/client/src/validation/querystring-search.ts index 0d5be7f740..c19eedd43f 100644 --- a/packages/client/src/validation/querystring-search.ts +++ b/packages/client/src/validation/querystring-search.ts @@ -3,7 +3,7 @@ import { z } from 'zod'; const query = z.object({ i: z.string(), o: z.string(), - v: z.array(z.string()), + v: z.union([z.string(), z.array(z.string())]), }); export const querystringSearchDataSchema = z.object({