mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-25 13:18:47 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -377,10 +377,7 @@ export const mariadbRouter = createTRPCRouter({
|
|||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
mariadbId: z.string().min(1),
|
mariadbId: z.string().min(1),
|
||||||
password: z
|
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.min(1)
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
type: z.enum(["user", "root"]).default("user"),
|
type: z.enum(["user", "root"]).default("user"),
|
||||||
|
|||||||
@@ -399,10 +399,7 @@ export const mongoRouter = createTRPCRouter({
|
|||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
mongoId: z.string().min(1),
|
mongoId: z.string().min(1),
|
||||||
password: z
|
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.min(1)
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -396,10 +396,7 @@ export const mysqlRouter = createTRPCRouter({
|
|||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
mysqlId: z.string().min(1),
|
mysqlId: z.string().min(1),
|
||||||
password: z
|
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.min(1)
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
type: z.enum(["user", "root"]).default("user"),
|
type: z.enum(["user", "root"]).default("user"),
|
||||||
|
|||||||
@@ -405,10 +405,7 @@ export const postgresRouter = createTRPCRouter({
|
|||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
postgresId: z.string().min(1),
|
postgresId: z.string().min(1),
|
||||||
password: z
|
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.min(1)
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -386,10 +386,7 @@ export const redisRouter = createTRPCRouter({
|
|||||||
.input(
|
.input(
|
||||||
z.object({
|
z.object({
|
||||||
redisId: z.string().min(1),
|
redisId: z.string().min(1),
|
||||||
password: z
|
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.min(1)
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -113,9 +113,7 @@ const createSchema = createInsertSchema(libsql, {
|
|||||||
appName: z.string().min(1),
|
appName: z.string().min(1),
|
||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
databaseUser: z.string().min(1),
|
databaseUser: z.string().min(1),
|
||||||
databasePassword: z
|
databasePassword: z.string().regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
sqldNode: z.enum(sqldNode.enumValues),
|
sqldNode: z.enum(sqldNode.enumValues),
|
||||||
|
|||||||
@@ -114,9 +114,7 @@ const createSchema = createInsertSchema(mariadb, {
|
|||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
databaseName: z.string().min(1),
|
databaseName: z.string().min(1),
|
||||||
databaseUser: z.string().min(1),
|
databaseUser: z.string().min(1),
|
||||||
databasePassword: z
|
databasePassword: z.string().regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
databaseRootPassword: z
|
databaseRootPassword: z
|
||||||
|
|||||||
@@ -116,9 +116,7 @@ const createSchema = createInsertSchema(mongo, {
|
|||||||
createdAt: z.string(),
|
createdAt: z.string(),
|
||||||
mongoId: z.string(),
|
mongoId: z.string(),
|
||||||
name: z.string().min(1),
|
name: z.string().min(1),
|
||||||
databasePassword: z
|
databasePassword: z.string().regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
databaseUser: z.string().min(1),
|
databaseUser: z.string().min(1),
|
||||||
|
|||||||
@@ -112,9 +112,7 @@ const createSchema = createInsertSchema(mysql, {
|
|||||||
name: z.string().min(1),
|
name: z.string().min(1),
|
||||||
databaseName: z.string().min(1),
|
databaseName: z.string().min(1),
|
||||||
databaseUser: z.string().min(1),
|
databaseUser: z.string().min(1),
|
||||||
databasePassword: z
|
databasePassword: z.string().regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
databaseRootPassword: z
|
databaseRootPassword: z
|
||||||
|
|||||||
@@ -109,9 +109,7 @@ const createSchema = createInsertSchema(postgres, {
|
|||||||
.max(63)
|
.max(63)
|
||||||
.regex(APP_NAME_REGEX, APP_NAME_MESSAGE)
|
.regex(APP_NAME_REGEX, APP_NAME_MESSAGE)
|
||||||
.optional(),
|
.optional(),
|
||||||
databasePassword: z
|
databasePassword: z.string().regex(DATABASE_PASSWORD_REGEX, {
|
||||||
.string()
|
|
||||||
.regex(DATABASE_PASSWORD_REGEX, {
|
|
||||||
message: DATABASE_PASSWORD_MESSAGE,
|
message: DATABASE_PASSWORD_MESSAGE,
|
||||||
}),
|
}),
|
||||||
databaseName: z.string().min(1),
|
databaseName: z.string().min(1),
|
||||||
|
|||||||
Reference in New Issue
Block a user