From 3a2942886d273a5792db48c70335fb0393ed5cf9 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 7 Feb 2025 17:50:55 +0000 Subject: [PATCH] fix: set currentListPublicId and currentIndex as optional params for card.reorder --- packages/api/src/routers/card.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/routers/card.ts b/packages/api/src/routers/card.ts index 73e7adf7..f76a09c3 100644 --- a/packages/api/src/routers/card.ts +++ b/packages/api/src/routers/card.ts @@ -667,9 +667,9 @@ export const cardRouter = createTRPCRouter({ .input( z.object({ cardPublicId: z.string().min(12), - currentListPublicId: z.string().min(12), + currentListPublicId: z.string().min(12).optional(), newListPublicId: z.string().min(12), - currentIndex: z.number(), + currentIndex: z.number().optional(), newIndex: z.number().optional(), }), )