mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 07:47:50 +01:00
add retry for fetching game state
This commit is contained in:
@@ -36,8 +36,7 @@ router.patch('/restart', (req, res, next) => {
|
||||
});
|
||||
|
||||
router.post('/create', gameEndpointLimiter, function (req, res) {
|
||||
const gameCreationPromise = gameManager.createGame(req.body, false);
|
||||
gameCreationPromise.then((result) => {
|
||||
gameManager.createGame(req.body, false).then((result) => {
|
||||
if (result instanceof Error) {
|
||||
res.status(500).send();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user