mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 07:47:50 +01:00
dont map spectator socket id
This commit is contained in:
@@ -93,7 +93,9 @@ function getGameStateBasedOnPermissions (game, person, gameRunner) {
|
||||
people: GameStateCurator.mapPeopleForModerator(game.people, client),
|
||||
timerParams: game.timerParams,
|
||||
isFull: game.isFull,
|
||||
spectators: game.spectators
|
||||
spectators: game.spectators.map((filteredPerson) =>
|
||||
GameStateCurator.mapPerson(filteredPerson)
|
||||
)
|
||||
};
|
||||
case globals.USER_TYPES.TEMPORARY_MODERATOR:
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user