summary refs log tree commit diff
path: root/src/gateway/opcodes/StreamWatch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gateway/opcodes/StreamWatch.ts')
-rw-r--r--src/gateway/opcodes/StreamWatch.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/opcodes/StreamWatch.ts b/src/gateway/opcodes/StreamWatch.ts

index 4e518651..3a3c553e 100644 --- a/src/gateway/opcodes/StreamWatch.ts +++ b/src/gateway/opcodes/StreamWatch.ts
@@ -28,7 +28,7 @@ export async function onStreamWatch(this: WebSocket, data: Payload) { const stream = await Stream.findOne({ where: { channel_id: channelId, owner_id: userId }, - relations: ["channel"], + relations: { channel: true }, }); if (!stream) return this.close(4000, "Invalid stream key");