[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-12-14 05:20:20 +00:00
committed by GitHub
parent b66156956a
commit 2b1a3db7b8
+6 -4
View File
@@ -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");