indentation fix

This commit is contained in:
robcolbert 2019-07-08 18:29:52 -04:00
parent 301cf54cff
commit 247ccbc265

View File

@ -660,19 +660,20 @@ const startWorker = (workerId) => {
streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel))); streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel)));
}); });
break; break;
case 'group': case 'group':
const groupId = location.query.group; const groupId = location.query.group;
authorizeGroupAccess(groupId, req, authorized => { authorizeGroupAccess(groupId, req, authorized => {
if (!authorized) { if (!authorized) {
ws.close(); ws.close();
return; return;
} }
channel = `timeline:group:${groupId}`; channel = `timeline:group:${groupId}`;
streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel))); streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel)));
}); });
break; break;
default: default:
ws.close(); ws.close();
} }