fix: fix update website monitor maybe null problem
This commit is contained in:
parent
a7f9870e64
commit
4a4c25c2eb
@ -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 }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user