style: apply Biome formatting

This commit is contained in:
github-actions[bot] 2026-09-04 21:44:56 +00:00 committed by Furox88
parent 2b290458f4
commit 42e6af64ba
4 changed files with 10 additions and 11 deletions

View File

@ -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",
);

View File

@ -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>
);
};
};

View File

@ -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({
}
}
}),
});
});

View File

@ -404,4 +404,4 @@ export const getBackupCommand = (
echo "[$(date)] ✅ Backup uploaded successfully" >> ${logPath};
echo "Backup done ✅" >> ${logPath};
`;
};
};