From b0e7f5aff55a080d2774711a7d9d31dc91c1ebbe Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 3 Dec 2023 21:23:04 +0800 Subject: [PATCH] Fix --- backend/socket-handlers/terminal-socket-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/socket-handlers/terminal-socket-handler.ts b/backend/socket-handlers/terminal-socket-handler.ts index bb27a66..3deed45 100644 --- a/backend/socket-handlers/terminal-socket-handler.ts +++ b/backend/socket-handlers/terminal-socket-handler.ts @@ -101,7 +101,7 @@ export class TerminalSocketHandler extends SocketHandler { log.debug("interactiveTerminal", "Service name: " + serviceName); // Get stack - const stack = Stack.getStack(server, stackName); + const stack = await Stack.getStack(server, stackName); stack.joinContainerTerminal(socket, serviceName, shell); callback({ @@ -151,7 +151,7 @@ export class TerminalSocketHandler extends SocketHandler { throw new ValidationError("Stack name must be a string."); } - const stack = Stack.getStack(server, stackName); + const stack = await Stack.getStack(server, stackName); await stack.leaveCombinedTerminal(socket); callback({