mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-07 20:45:17 +00:00
fix: typing
This commit is contained in:
@@ -285,17 +285,18 @@ 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)
|
(Object.entries(cleanupCommands) as [
|
||||||
|
keyof typeof cleanupCommands,
|
||||||
|
string
|
||||||
|
][])
|
||||||
.filter(([key]) => !excludedCleanupAllCommands.includes(key))
|
.filter(([key]) => !excludedCleanupAllCommands.includes(key))
|
||||||
.map(async ([, command]) => {
|
.map(async ([, command]) => {
|
||||||
try {
|
|
||||||
if (serverId) {
|
if (serverId) {
|
||||||
await execAsyncRemote(serverId, dockerSafeExec(command));
|
await execAsyncRemote(serverId, dockerSafeExec(command));
|
||||||
} else {
|
} else {
|
||||||
await execAsync(dockerSafeExec(command));
|
await execAsync(dockerSafeExec(command));
|
||||||
}
|
}
|
||||||
} catch {}
|
})
|
||||||
}),
|
|
||||||
)
|
)
|
||||||
.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