diff --git a/packages/server/src/utils/docker/utils.ts b/packages/server/src/utils/docker/utils.ts index 2a1674151..abd1f678c 100644 --- a/packages/server/src/utils/docker/utils.ts +++ b/packages/server/src/utils/docker/utils.ts @@ -267,7 +267,7 @@ const excludedCleanupAllCommands: (keyof typeof cleanupCommands)[] = [ ]; export const cleanupAll = async (serverId?: string) => { - for (const [key, command] of Object.entries(cleanupCommands)) { + for (const [key, command] of Object.entries(cleanupCommands) as [keyof typeof cleanupCommands, string][]) { if (excludedCleanupAllCommands.includes(key)) continue; try {