mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-29 06:48:45 +00:00
fix(swarm): adjust validation for containerId to allow empty array
This commit is contained in:
@@ -67,8 +67,7 @@ export const swarmRouter = createTRPCRouter({
|
|||||||
.string()
|
.string()
|
||||||
.min(1)
|
.min(1)
|
||||||
.regex(containerIdRegex, "Invalid app name.")
|
.regex(containerIdRegex, "Invalid app name.")
|
||||||
.array()
|
.array(),
|
||||||
.min(1),
|
|
||||||
serverId: z.string().optional(),
|
serverId: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user