mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-01 08:16:44 +00:00
Make sure siteIds are numbers
Fixes PAN-145
This commit is contained in:
@@ -29,7 +29,7 @@ const updateClientSchema = z
|
||||
.object({
|
||||
name: z.string().min(1).max(255).optional(),
|
||||
siteIds: z
|
||||
.array(z.string().transform(Number).pipe(z.number()))
|
||||
.array(z.number().int().positive())
|
||||
.optional()
|
||||
})
|
||||
.strict();
|
||||
|
||||
Reference in New Issue
Block a user