From 4a4c25c2eb0ef6f9ef384b0a3a4ecd1c3e450eba Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sat, 21 Oct 2023 00:18:48 +0800 Subject: [PATCH] fix: fix update website monitor maybe null problem --- src/server/trpc/routers/website.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/trpc/routers/website.ts b/src/server/trpc/routers/website.ts index ab831fd..f042188 100644 --- a/src/server/trpc/routers/website.ts +++ b/src/server/trpc/routers/website.ts @@ -161,7 +161,7 @@ export const websiteRouter = router({ websiteId: z.string().cuid2(), name: z.string().max(100), domain: z.union([z.string().max(500).url(), z.string().max(500).ip()]), - monitorId: z.string().cuid2(), + monitorId: z.string().cuid2().nullish(), }) ) .mutation(async ({ input }) => {