mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-05 02:24:59 +02:00
Create resource working
This commit is contained in:
parent
0ff183796c
commit
091d649997
17 changed files with 721 additions and 130 deletions
|
@ -16,7 +16,7 @@ import logger from "@server/logger";
|
|||
|
||||
const listResourcesParamsSchema = z
|
||||
.object({
|
||||
siteId: z.number().int().positive().optional(),
|
||||
siteId: z.string().optional().transform(Number).pipe(z.number().int().positive()),
|
||||
orgId: z.string().optional(),
|
||||
})
|
||||
.refine((data) => !!data.siteId !== !!data.orgId, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue