Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeluduena committed Nov 10, 2023
1 parent 123f117 commit e4c6040
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routers/games/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ async def play_defense_card(game_name: str, defense_info: PlayDefenseInformation


@router.patch("/{game_name}/the-thing-end-game")
async def the_thing_end_game(game_name: str, player_id: int):
utils.verify_player_is_the_thing(player_id, game_name)
async def the_thing_end_game(game_name: str, game_data: TheThingEndGameIn):
utils.verify_player_is_the_thing(game_data.player_id, game_name)
services.finish_game_by_the_thing(game_name)

json_msg = {
Expand Down
5 changes: 5 additions & 0 deletions app/routers/games/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,8 @@ class OneTwoEffectIn(BaseModel):

player_id: int
objective_player_id: int

class TheThingEndGameIn(BaseModel):
model_config = ConfigDict(from_attributes=True)

player_id: int

0 comments on commit e4c6040

Please sign in to comment.