allow moderators to kick players and spectators

This commit is contained in:
AlecM33
2023-08-02 23:23:01 -04:00
parent d00f3d630a
commit 0d82227824
14 changed files with 195 additions and 38 deletions

View File

@@ -103,8 +103,6 @@ router.patch('/:code/restart', async function (req, res) {
const game = await gameManager.getActiveGame(req.body.accessCode);
if (game) {
gameManager.restartGame(game, gameManager.namespace, req.query.status).then((data) => {
console.log(req.query.status);
console.log(req.query.toLobby);
res.status(200).send();
}).catch((code) => {
res.status(code).send();