mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-02 07:48:49 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
+4
-4
@@ -55,8 +55,7 @@ const formSchema = z
|
|||||||
cronExpression: z.string().min(1, "Cron expression is required"),
|
cronExpression: z.string().min(1, "Cron expression is required"),
|
||||||
volumeName: z.string().min(1, "Volume name is required"),
|
volumeName: z.string().min(1, "Volume name is required"),
|
||||||
prefix: z.string(),
|
prefix: z.string(),
|
||||||
keepLatestCount: z
|
keepLatestCount: z.coerce
|
||||||
.coerce
|
|
||||||
.number()
|
.number()
|
||||||
.int()
|
.int()
|
||||||
.gte(1, "Must be at least 1")
|
.gte(1, "Must be at least 1")
|
||||||
@@ -188,7 +187,8 @@ export const HandleVolumeBackups = ({
|
|||||||
serviceType: volumeBackup.serviceType,
|
serviceType: volumeBackup.serviceType,
|
||||||
});
|
});
|
||||||
setKeepLatestCountInput(
|
setKeepLatestCountInput(
|
||||||
volumeBackup.keepLatestCount !== null && volumeBackup.keepLatestCount !== undefined
|
volumeBackup.keepLatestCount !== null &&
|
||||||
|
volumeBackup.keepLatestCount !== undefined
|
||||||
? String(volumeBackup.keepLatestCount)
|
? String(volumeBackup.keepLatestCount)
|
||||||
: "",
|
: "",
|
||||||
);
|
);
|
||||||
@@ -203,7 +203,7 @@ export const HandleVolumeBackups = ({
|
|||||||
if (!id && !volumeBackupId) return;
|
if (!id && !volumeBackupId) return;
|
||||||
|
|
||||||
const preparedKeepLatestCount =
|
const preparedKeepLatestCount =
|
||||||
keepLatestCountInput === "" ? null : values.keepLatestCount ?? null;
|
keepLatestCountInput === "" ? null : (values.keepLatestCount ?? null);
|
||||||
|
|
||||||
await mutateAsync({
|
await mutateAsync({
|
||||||
...values,
|
...values,
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
import { findVolumeBackupById } from "@dokploy/server/services/volume-backups";
|
import { findVolumeBackupById } from "@dokploy/server/services/volume-backups";
|
||||||
import { scheduledJobs, scheduleJob } from "node-schedule";
|
import { scheduledJobs, scheduleJob } from "node-schedule";
|
||||||
import { createDeploymentVolumeBackup, updateDeploymentStatus } from "@dokploy/server/services/deployment";
|
import {
|
||||||
import { execAsync, execAsyncRemote } from "@dokploy/server/utils/process/execAsync";
|
createDeploymentVolumeBackup,
|
||||||
|
updateDeploymentStatus,
|
||||||
|
} from "@dokploy/server/services/deployment";
|
||||||
|
import {
|
||||||
|
execAsync,
|
||||||
|
execAsyncRemote,
|
||||||
|
} from "@dokploy/server/utils/process/execAsync";
|
||||||
import { backupVolume } from "./backup";
|
import { backupVolume } from "./backup";
|
||||||
import { getS3Credentials, normalizeS3Path } from "../backups/utils";
|
import { getS3Credentials, normalizeS3Path } from "../backups/utils";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user