fix: fix update website monitor maybe null problem

This commit is contained in:
moonrailgun 2023-10-21 00:18:48 +08:00
parent a7f9870e64
commit 4a4c25c2eb

View File

@ -161,7 +161,7 @@ export const websiteRouter = router({
websiteId: z.string().cuid2(), websiteId: z.string().cuid2(),
name: z.string().max(100), name: z.string().max(100),
domain: z.union([z.string().max(500).url(), z.string().max(500).ip()]), 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 }) => { .mutation(async ({ input }) => {