From 247ccbc26535e20dfef4acf0cc868d8894dbd806 Mon Sep 17 00:00:00 2001 From: robcolbert Date: Mon, 8 Jul 2019 18:29:52 -0400 Subject: [PATCH] indentation fix --- streaming/index.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/streaming/index.js b/streaming/index.js index 30110427..38d9b28f 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -660,19 +660,20 @@ const startWorker = (workerId) => { streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel))); }); break; + case 'group': - const groupId = location.query.group; - - authorizeGroupAccess(groupId, req, authorized => { - if (!authorized) { - ws.close(); - return; - } - - channel = `timeline:group:${groupId}`; - streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel))); - }); - break; + const groupId = location.query.group; + + authorizeGroupAccess(groupId, req, authorized => { + if (!authorized) { + ws.close(); + return; + } + + channel = `timeline:group:${groupId}`; + streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel))); + }); + break; default: ws.close(); }