Skip to content

Commit

Permalink
Revert map playerId on player & league events
Browse files Browse the repository at this point in the history
  • Loading branch information
blair55 committed May 5, 2023
1 parent 93fa9dd commit 212809e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Server/EventHandling.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ module EventHandling =

match event with
// players
| PlayerLoggedIn (MapPredictionSetEventPlayerIdId playerId) ->
| PlayerLoggedIn (playerId) ->
PlayerLoggedInSubscribers.all
|> List.iter (fun f -> f deps created playerId)
| PlayerCreated (MapPredictionSetEventPlayerIdId playerId, playerName, email) ->
| PlayerCreated (playerId, playerName, email) ->
PlayerCreatedSubscribers.all
|> List.iter (fun f -> f deps created (playerId, playerName, email))
| PlayerRemoved playerId ->
Expand All @@ -40,7 +40,7 @@ module EventHandling =
| LeagueRenamed (leagueId, leagueName) ->
LeagueRenamedSubscribers.all
|> List.iter (fun f -> f deps (leagueId, leagueName))
| LeagueJoined (leagueId, MapPredictionSetEventPlayerIdId playerId) ->
| LeagueJoined (leagueId, playerId) ->
LeagueJoinedSubscribers.all
|> List.iter (fun f -> f deps created (leagueId, playerId))
| LeagueLeft (leagueId, playerId) ->
Expand Down

0 comments on commit 212809e

Please sign in to comment.