mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-28 14:38:46 +00:00
refactor(settings): remove unused cleanupFullDocker function and streamline imports
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { readdirSync } from "node:fs";
|
import { readdirSync } from "node:fs";
|
||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { docker } from "@dokploy/server/constants";
|
import { docker } from "@dokploy/server/constants";
|
||||||
|
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
|
||||||
import {
|
import {
|
||||||
execAsync,
|
execAsync,
|
||||||
execAsyncRemote,
|
execAsyncRemote,
|
||||||
@@ -10,7 +11,6 @@ import {
|
|||||||
initializeTraefikService,
|
initializeTraefikService,
|
||||||
type TraefikOptions,
|
type TraefikOptions,
|
||||||
} from "../setup/traefik-setup";
|
} from "../setup/traefik-setup";
|
||||||
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
|
|
||||||
|
|
||||||
export interface IUpdateData {
|
export interface IUpdateData {
|
||||||
latestVersion: string | null;
|
latestVersion: string | null;
|
||||||
@@ -216,14 +216,6 @@ echo "$json_output"
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* This function is not currently used anywhere, but it remains here because removing it would be risky.
|
|
||||||
*
|
|
||||||
* https://github.com/Dokploy/dokploy/pull/3064
|
|
||||||
* https://github.com/fir4tozden
|
|
||||||
*/
|
|
||||||
export const cleanupFullDocker = cleanupAll;
|
|
||||||
|
|
||||||
export const getDockerResourceType = async (
|
export const getDockerResourceType = async (
|
||||||
resourceName: string,
|
resourceName: string,
|
||||||
serverId?: string,
|
serverId?: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user