mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
part 4 of redis effort
This commit is contained in:
@@ -83,6 +83,7 @@ router.patch('/:code/players', async function (req, res) {
|
||||
gameManager.joinGame(game, req.body.playerName, inUseCookie, req.body.joinAsSpectator).then((data) => {
|
||||
res.status(200).send({ cookie: data, environment: gameManager.environment });
|
||||
}).catch((data) => {
|
||||
console.log(data);
|
||||
res.status(data.status).send(data.reason);
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user