mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
allow moderators to kick players and spectators
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user