From b7856fa42c92bc01f2f9c6d11523aa92a861b032 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Fri, 19 Mar 2021 23:34:12 +0530 Subject: [PATCH] idk --- src/ws/handler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ws/handler.js b/src/ws/handler.js index 6f5a1b7..4c5742c 100644 --- a/src/ws/handler.js +++ b/src/ws/handler.js @@ -77,9 +77,10 @@ const fanoutMsg = (channel, data) => { } connections[k].connection.send(JSON.stringify(d)) } else if (connections[k].events.indexOf('streams:full') !== -1) { + const m = await crud['streams'].getAllPop() const d = { event: 'streams:full', - data: await crud['streams'].getAllPop(), + data: m, } connections[k].connection.send(JSON.stringify(d)) }