[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-08-31 00:30:08 +00:00
committed by GitHub
parent a2841fdd30
commit 22e40134ea
2 changed files with 442 additions and 442 deletions
@@ -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();
}) })