HOTFIX: fixed a server when trying to connect to the adminRoomSocket

This commit is contained in:
kharhamel 2020-11-13 12:15:58 +01:00
parent 3c0f61d3b3
commit 0a2e967eca
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ export class IoSocketController {
if (token !== ADMIN_API_TOKEN) {
console.log('Admin access refused for token: '+token)
res.writeStatus("401 Unauthorized").end('Incorrect token');
return;
}
const roomId = query.roomId as string;