From 8c47f376dc6bb49f406fb53428b6d2e9ee623b65 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sat, 15 Apr 2023 17:52:48 +0200 Subject: [PATCH] server: fix undefined variable in streaming API --- packages/backend/src/server/api/stream/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/stream/index.ts b/packages/backend/src/server/api/stream/index.ts index c93b4877b..981f8fed7 100644 --- a/packages/backend/src/server/api/stream/index.ts +++ b/packages/backend/src/server/api/stream/index.ts @@ -332,7 +332,7 @@ export class Connection { * @param data The message to be sent. */ private onChannelMessageRequested(data: Record) { - this.channels[id]?.onMessage?.(data.type, data.body); + this.channels[data.id]?.onMessage?.(data.type, data.body); } private typingOnChannel(channel: ChannelModel['id']) {