mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 06:55:19 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -58,7 +58,7 @@ export const ShowDeployments = ({
|
|||||||
{
|
{
|
||||||
enabled: !!id,
|
enabled: !!id,
|
||||||
refetchInterval: 1000,
|
refetchInterval: 1000,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const { mutateAsync: rollback, isLoading: isRollingBack } =
|
const { mutateAsync: rollback, isLoading: isRollingBack } =
|
||||||
@@ -167,8 +167,8 @@ export const ShowDeployments = ({
|
|||||||
Math.floor(
|
Math.floor(
|
||||||
(new Date(deployment.finishedAt).getTime() -
|
(new Date(deployment.finishedAt).getTime() -
|
||||||
new Date(deployment.startedAt).getTime()) /
|
new Date(deployment.startedAt).getTime()) /
|
||||||
1000
|
1000,
|
||||||
)
|
),
|
||||||
)}
|
)}
|
||||||
</Badge>
|
</Badge>
|
||||||
)}
|
)}
|
||||||
@@ -222,7 +222,7 @@ export const ShowDeployments = ({
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
toast.success(
|
toast.success(
|
||||||
"Rollback initiated successfully"
|
"Rollback initiated successfully",
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
enabled: !!id,
|
enabled: !!id,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const utils = api.useUtils();
|
const utils = api.useUtils();
|
||||||
@@ -169,7 +169,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
|
|||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await new Promise((resolve) =>
|
await new Promise((resolve) =>
|
||||||
setTimeout(resolve, 1500)
|
setTimeout(resolve, 1500),
|
||||||
);
|
);
|
||||||
refetchSchedules();
|
refetchSchedules();
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user