[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-04-04 15:27:30 +00:00
committed by GitHub
parent 0cb5ee49e0
commit 1cfc15ca0b
10 changed files with 30 additions and 55 deletions

View File

@@ -377,12 +377,9 @@ export const mariadbRouter = createTRPCRouter({
.input(
z.object({
mariadbId: z.string().min(1),
password: z
.string()
.min(1)
.regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
type: z.enum(["user", "root"]).default("user"),
}),
)

View File

@@ -399,12 +399,9 @@ export const mongoRouter = createTRPCRouter({
.input(
z.object({
mongoId: z.string().min(1),
password: z
.string()
.min(1)
.regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
}),
)
.mutation(async ({ input, ctx }) => {

View File

@@ -396,12 +396,9 @@ export const mysqlRouter = createTRPCRouter({
.input(
z.object({
mysqlId: z.string().min(1),
password: z
.string()
.min(1)
.regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
type: z.enum(["user", "root"]).default("user"),
}),
)

View File

@@ -405,12 +405,9 @@ export const postgresRouter = createTRPCRouter({
.input(
z.object({
postgresId: z.string().min(1),
password: z
.string()
.min(1)
.regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
}),
)
.mutation(async ({ input, ctx }) => {

View File

@@ -386,12 +386,9 @@ export const redisRouter = createTRPCRouter({
.input(
z.object({
redisId: z.string().min(1),
password: z
.string()
.min(1)
.regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
password: z.string().min(1).regex(DATABASE_PASSWORD_REGEX, {
message: DATABASE_PASSWORD_MESSAGE,
}),
}),
)
.mutation(async ({ input, ctx }) => {