fix: typing

This commit is contained in:
фырат ёздэн
2025-12-14 08:20:00 +03:00
committed by GitHub
parent 669de0f95f
commit b66156956a
+5 -4
View File
@@ -285,17 +285,18 @@ export const cleanupAll = async (serverId?: string) => {
export const cleanupAllBackground = async (serverId?: string) => {
Promise.allSettled(
Object.entries(cleanupCommands)
(Object.entries(cleanupCommands) as [
keyof typeof cleanupCommands,
string
][])
.filter(([key]) => !excludedCleanupAllCommands.includes(key))
.map(async ([, command]) => {
try {
if (serverId) {
await execAsyncRemote(serverId, dockerSafeExec(command));
} else {
await execAsync(dockerSafeExec(command));
}
} catch {}
}),
})
)
.then((results) => {
const failed = results.filter((r) => r.status === "rejected");