From 49d79fcd3783116cf97f02dc5639d3f151982ec5 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 07:29:11 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- .../database/backups/handle-backup.tsx | 5 ++++- .../database/backups/restore-backup.tsx | 12 +++++++++-- .../show-external-libsql-credentials.tsx | 20 +++++++++---------- apps/dokploy/server/api/routers/libsql.ts | 18 ++++++++++++++--- 4 files changed, 39 insertions(+), 16 deletions(-) diff --git a/apps/dokploy/components/dashboard/database/backups/handle-backup.tsx b/apps/dokploy/components/dashboard/database/backups/handle-backup.tsx index c02e834d1..26880e9b5 100644 --- a/apps/dokploy/components/dashboard/database/backups/handle-backup.tsx +++ b/apps/dokploy/components/dashboard/database/backups/handle-backup.tsx @@ -585,7 +585,10 @@ export const HandleBackup = ({ Database diff --git a/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx b/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx index e1d3ee452..00647aea7 100644 --- a/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx +++ b/apps/dokploy/components/dashboard/database/backups/restore-backup.tsx @@ -211,7 +211,12 @@ export const RestoreBackup = ({ defaultValues: { destinationId: "", backupFile: "", - databaseName: databaseType === "web-server" ? "dokploy" : databaseType === "libsql" ? "iku.db" : "", + databaseName: + databaseType === "web-server" + ? "dokploy" + : databaseType === "libsql" + ? "iku.db" + : "", databaseType: backupType === "compose" ? ("postgres" as DatabaseType) : databaseType, backupType: backupType, @@ -523,7 +528,10 @@ export const RestoreBackup = ({ diff --git a/apps/dokploy/components/dashboard/libsql/general/show-external-libsql-credentials.tsx b/apps/dokploy/components/dashboard/libsql/general/show-external-libsql-credentials.tsx index 474638333..378d0d944 100644 --- a/apps/dokploy/components/dashboard/libsql/general/show-external-libsql-credentials.tsx +++ b/apps/dokploy/components/dashboard/libsql/general/show-external-libsql-credentials.tsx @@ -107,13 +107,18 @@ export const ShowExternalLibsqlCredentials = ({ libsqlId }: Props) => { ); if (data?.sqldNode !== "replica") { - const grpcPort = - form.watch("externalGRPCPort") || data?.externalGRPCPort; + const grpcPort = form.watch("externalGRPCPort") || data?.externalGRPCPort; setGRPCConnectionUrl( `http://${data?.databaseUser}:${data?.databasePassword}@${getIp}:${grpcPort}`, ); } - }, [data?.externalGRPCPort, data?.databasePassword, form, data?.databaseUser, getIp]); + }, [ + data?.externalGRPCPort, + data?.databasePassword, + form, + data?.databaseUser, + getIp, + ]); return (
@@ -130,10 +135,7 @@ export const ShowExternalLibsqlCredentials = ({ libsqlId }: Props) => { {!getIp && ( You need to set an IP address in your{" "} - + {data?.serverId ? "Remote Servers -> Server -> Edit Server -> Update IP Address" : "Web Server -> Server -> Update Server IP"} @@ -207,9 +209,7 @@ export const ShowExternalLibsqlCredentials = ({ libsqlId }: Props) => { name="externalGRPCPort" render={({ field }) => ( - - External GRPC Port (Internet) - + External GRPC Port (Internet)