diff --git a/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx b/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx index 1d383f0a1..2cf26e2d2 100644 --- a/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx +++ b/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx @@ -101,35 +101,6 @@ const ServiceModeSwarmSchema = z.object({ const LabelsSwarmSchema = z.record(z.string()); -// const stringToJSONSchema = z -// .string() -// .transform((str, ctx) => { -// try { -// return JSON.parse(str); -// } catch (e) { -// ctx.addIssue({ code: "custom", message: "Invalid JSON format" }); -// return z.NEVER; -// } -// }) -// .superRefine((data, ctx) => { -// const parseResult = HealthCheckSwarmSchema.safeParse(data); -// if (!parseResult.success) { -// for (const error of parseResult.error.issues) { -// const path = error.path.join("."); -// ctx.addIssue({ -// code: z.ZodIssueCode.custom, -// message: `${path} ${error.message}`, -// }); -// } -// // parseResult.error.errors.forEach((error) => { -// // const path = error.path.join("."); -// // ctx.addIssue({ -// // code: z.ZodIssueCode.custom, -// // message: `${path} ${error.message}`, -// // }); -// // }); -// } -// }); const createStringToJSONSchema = (schema: z.ZodTypeAny) => { return z .string() diff --git a/server/db/schema/application.ts b/server/db/schema/application.ts index 8f15fdc85..3222d34c3 100644 --- a/server/db/schema/application.ts +++ b/server/db/schema/application.ts @@ -30,6 +30,7 @@ export const buildType = pgEnum("buildType", [ "nixpacks", ]); +// TODO: refactor this types interface HealthCheckSwarm { Test?: string[] | undefined; Interval?: number | undefined;