mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-23 12:18:46 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -285,10 +285,12 @@ export const cleanupAll = async (serverId?: string) => {
|
|||||||
|
|
||||||
export const cleanupAllBackground = async (serverId?: string) => {
|
export const cleanupAllBackground = async (serverId?: string) => {
|
||||||
Promise.allSettled(
|
Promise.allSettled(
|
||||||
(Object.entries(cleanupCommands) as [
|
(
|
||||||
|
Object.entries(cleanupCommands) as [
|
||||||
keyof typeof cleanupCommands,
|
keyof typeof cleanupCommands,
|
||||||
string
|
string,
|
||||||
][])
|
][]
|
||||||
|
)
|
||||||
.filter(([key]) => !excludedCleanupAllCommands.includes(key))
|
.filter(([key]) => !excludedCleanupAllCommands.includes(key))
|
||||||
.map(async ([, command]) => {
|
.map(async ([, command]) => {
|
||||||
if (serverId) {
|
if (serverId) {
|
||||||
@@ -296,7 +298,7 @@ export const cleanupAllBackground = async (serverId?: string) => {
|
|||||||
} else {
|
} else {
|
||||||
await execAsync(dockerSafeExec(command));
|
await execAsync(dockerSafeExec(command));
|
||||||
}
|
}
|
||||||
})
|
}),
|
||||||
)
|
)
|
||||||
.then((results) => {
|
.then((results) => {
|
||||||
const failed = results.filter((r) => r.status === "rejected");
|
const failed = results.filter((r) => r.status === "rejected");
|
||||||
|
|||||||
Reference in New Issue
Block a user