Make the action property actually consistent across event emits
This commit is contained in:
parent
d241f341be
commit
e2e62859b7
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ const modifyPlayer = (io: Server, socket: Socket, data: UpdatePlayer): void => {
|
||||||
|
|
||||||
io.to(game.id).emit(`PlayerUpdate`, {
|
io.to(game.id).emit(`PlayerUpdate`, {
|
||||||
status: 200,
|
status: 200,
|
||||||
mode: `modify`,
|
action: `modify`,
|
||||||
name: data.name,
|
name: data.name,
|
||||||
role: data.to.role,
|
role: data.to.role,
|
||||||
team: data.to.team,
|
team: data.to.team,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue