CheckGameStatus middleware add use case game will begun but has no teaser as default hanlding redirect to page

This commit is contained in:
Jérémy Munsch 2023-12-19 12:55:37 +01:00
parent c113c51800
commit 89e0aa0fdc
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -31,7 +31,8 @@ class CheckGameStatus
$settings->game_has_ended => redirect($settings->redirect_close),
// * Game has started
$settings->game_has_begun => $next($request),
default => throw new \RuntimeException('Unhandled game state')
// * The game will begun, but has no teaser activated.
default => redirect($settings->redirect_close)
};
}
}