mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
style: apply Biome formatting
This commit is contained in:
parent
2b290458f4
commit
42e6af64ba
@ -290,9 +290,7 @@ describe("getRclonePathAndFlags", () => {
|
||||
secretAccessKey: "",
|
||||
region: "",
|
||||
bucket: "/backups/",
|
||||
additionalFlags: [
|
||||
"--sftp-known-hosts-file=/etc/ssh/ssh_known_hosts",
|
||||
],
|
||||
additionalFlags: ["--sftp-known-hosts-file=/etc/ssh/ssh_known_hosts"],
|
||||
}),
|
||||
"service/backup.tar",
|
||||
);
|
||||
|
||||
@ -114,7 +114,8 @@ const addDestination = z
|
||||
|
||||
const flags = data.additionalFlags?.map((flag) => flag.value) ?? [];
|
||||
if (data.provider === RCLONE_DESTINATION_PROVIDERS.FTP) {
|
||||
const { implicitTlsEnabled, explicitTlsEnabled } = getFtpTlsState(flags);
|
||||
const { implicitTlsEnabled, explicitTlsEnabled } =
|
||||
getFtpTlsState(flags);
|
||||
if (!implicitTlsEnabled && !explicitTlsEnabled) {
|
||||
ctx.addIssue({
|
||||
code: "custom",
|
||||
@ -204,8 +205,9 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
||||
const currentProvider = form.watch("provider");
|
||||
const currentAdditionalFlags =
|
||||
form.watch("additionalFlags")?.map((flag) => flag.value) ?? [];
|
||||
const { implicitTlsEnabled: implicitFtpTlsEnabled } =
|
||||
getFtpTlsState(currentAdditionalFlags);
|
||||
const { implicitTlsEnabled: implicitFtpTlsEnabled } = getFtpTlsState(
|
||||
currentAdditionalFlags,
|
||||
);
|
||||
const isNamedRemote = isNamedRcloneDestinationProvider(currentProvider);
|
||||
const isFileTransfer =
|
||||
currentProvider === RCLONE_DESTINATION_PROVIDERS.FTP ||
|
||||
@ -671,4 +673,4 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
@ -602,8 +602,7 @@ export const backupRouter = createTRPCRouter({
|
||||
);
|
||||
const queue: string[] = [];
|
||||
let done = false;
|
||||
const onLog = (log: string) =>
|
||||
queue.push(redactRcloneCredentials(log));
|
||||
const onLog = (log: string) => queue.push(redactRcloneCredentials(log));
|
||||
const runRestore = async () => {
|
||||
if (input.backupType === "database") {
|
||||
if (input.databaseType === "postgres") {
|
||||
@ -650,4 +649,4 @@ export const backupRouter = createTRPCRouter({
|
||||
}
|
||||
}
|
||||
}),
|
||||
});
|
||||
});
|
||||
|
||||
@ -404,4 +404,4 @@ export const getBackupCommand = (
|
||||
echo "[$(date)] ✅ Backup uploaded successfully" >> ${logPath};
|
||||
echo "Backup done ✅" >> ${logPath};
|
||||
`;
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user