[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-11-30 21:50:25 +00:00
committed by GitHub
parent 25b7069e31
commit e3832eff07
3 changed files with 10 additions and 11 deletions
+2 -1
View File
@@ -216,7 +216,8 @@ echo "$json_output"
return result; return result;
}; };
export const cleanupFullDocker = async (serverId?: string) => cleanupAll(serverId); export const cleanupFullDocker = async (serverId?: string) =>
cleanupAll(serverId);
export const getDockerResourceType = async ( export const getDockerResourceType = async (
resourceName: string, resourceName: string,
+2 -4
View File
@@ -6,9 +6,7 @@ import { eq } from "drizzle-orm";
import { scheduleJob } from "node-schedule"; import { scheduleJob } from "node-schedule";
import { db } from "../../db/index"; import { db } from "../../db/index";
import { startLogCleanup } from "../access-log/handler"; import { startLogCleanup } from "../access-log/handler";
import { import { cleanupAll } from "../docker/utils";
cleanupAll
} from "../docker/utils";
import { sendDockerCleanupNotifications } from "../notifications/docker-cleanup"; import { sendDockerCleanupNotifications } from "../notifications/docker-cleanup";
import { execAsync, execAsyncRemote } from "../process/execAsync"; import { execAsync, execAsyncRemote } from "../process/execAsync";
import { getS3Credentials, scheduleBackup } from "./utils"; import { getS3Credentials, scheduleBackup } from "./utils";
@@ -47,7 +45,7 @@ export const initCronJobs = async () => {
scheduleJob(serverId, "0 0 * * *", async () => { scheduleJob(serverId, "0 0 * * *", async () => {
console.log( console.log(
`SERVER-BACKUP[${new Date().toLocaleString()}] Running Cleanup ${name}`, `SERVER-BACKUP[${new Date().toLocaleString()}] Running Cleanup ${name}`,
) );
await cleanupImages(serverId); await cleanupImages(serverId);
+1 -1
View File
@@ -260,7 +260,7 @@ export const cleanupAll = async (serverId?: string) => {
await cleanupBuilders(serverId); await cleanupBuilders(serverId);
await cleanupSystem(serverId); await cleanupSystem(serverId);
await cleanupInactiveContainers(); await cleanupInactiveContainers();
} };
export const startService = async (appName: string) => { export const startService = async (appName: string) => {
try { try {