From d92932e5d3a6afb79ab027a311e834aa7d2b82b4 Mon Sep 17 00:00:00 2001 From: Rihan Arfan Date: Sun, 27 Oct 2024 21:24:26 +0000 Subject: [PATCH] fix: make vectorize query params optional --- .../server/api/_hub/vectorize/[index]/[command].post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/vectorize/server/api/_hub/vectorize/[index]/[command].post.ts b/src/runtime/vectorize/server/api/_hub/vectorize/[index]/[command].post.ts index a067c8e3..c3acabfe 100644 --- a/src/runtime/vectorize/server/api/_hub/vectorize/[index]/[command].post.ts +++ b/src/runtime/vectorize/server/api/_hub/vectorize/[index]/[command].post.ts @@ -36,7 +36,7 @@ export default eventHandler(async (event) => { returnValues: z.boolean().optional(), returnMetadata: z.union([z.literal('none'), z.literal('indexed'), z.literal('all')]).optional(), filter: z.record(z.string(), z.any()).optional() - }) + }).optional() }).parse) return vectorize.query(query, params) }