refactor(access-log): consolidate web server settings imports and enhance log cleanup status retrieval

This commit is contained in:
Mauricio Siu
2025-12-21 01:46:27 -06:00
parent ec56062f17
commit 3abc4cdc3b

View File

@@ -1,5 +1,8 @@
import { paths } from "@dokploy/server/constants";
import { updateWebServerSettings } from "@dokploy/server/services/web-server-settings";
import {
getWebServerSettings,
updateWebServerSettings,
} from "@dokploy/server/services/web-server-settings";
import { scheduledJobs, scheduleJob } from "node-schedule";
import { execAsync } from "../process/execAsync";
@@ -58,8 +61,6 @@ export const stopLogCleanup = async (): Promise<boolean> => {
}
};
import { getWebServerSettings } from "@dokploy/server/services/web-server-settings";
export const getLogCleanupStatus = async (): Promise<{
enabled: boolean;
cronExpression: string | null;