Skip to content

Commit

Permalink
fix: start game should use game.backEndUrl (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricksu978 committed Sep 17, 2023
1 parent 2863fdb commit 51712b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class StartGameUseCase(
}

private fun Room.startGameByHost(jwtToken: String): String {
val gameServerHost = game.frontEndUrl
val gameServerHost = game.backEndUrl
val startGameRequest = StartGameRequest(players.map { it.toGamePlayer() })

return gameService.startGame(gameServerHost, jwtToken, startGameRequest).url
Expand Down

0 comments on commit 51712b0

Please sign in to comment.