From 16eb31865e6236bca2c3e4cab2bac6ddf913344e Mon Sep 17 00:00:00 2001 From: Aditya Choudhari Date: Mon, 9 Dec 2024 18:50:52 -0800 Subject: [PATCH] fix: Pty proxy build --- apps/pty-proxy/src/controller/user-socket.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/pty-proxy/src/controller/user-socket.ts b/apps/pty-proxy/src/controller/user-socket.ts index c2f64f37..7ff38200 100644 --- a/apps/pty-proxy/src/controller/user-socket.ts +++ b/apps/pty-proxy/src/controller/user-socket.ts @@ -51,15 +51,15 @@ export class UserSocket { ifMessage() .is(sessionCreate, (data) => { logger.debug("Received session create request", { - targetId: data.targetId, + resourceId: data.resourceId, sessionId: data.sessionId, userId: user.id, }); - const { agent } = agents.get(data.targetId) ?? { agent: null }; + const { agent } = agents.get(data.resourceId) ?? { agent: null }; if (agent == null) { logger.warn("Agent not found for session create", { - targetId: data.targetId, + resourceId: data.resourceId, sessionId: data.sessionId, userId: user.id, }); @@ -67,23 +67,23 @@ export class UserSocket { } logger.info("Found agent for session create", { - targetId: data.targetId, + resourceId: data.resourceId, }); createSessionSocket(data.sessionId); agent.send(data); }) .is(sessionResize, (data) => { - const { sessionId, targetId } = data; + const { sessionId, resourceId } = data; logger.info("Received session resize request", { sessionId: data.sessionId, userId: user.id, }); - const { agent } = agents.get(targetId) ?? { agent: null }; + const { agent } = agents.get(resourceId) ?? { agent: null }; if (agent == null) { logger.warn("Agent not found for session resize", { - targetId, + resourceId, sessionId, }); return;