CheckGameStatus middleware add use case game will begun but has no teaser as default hanlding redirect to page
This commit is contained in:
parent
c113c51800
commit
89e0aa0fdc
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue