Adjust function header
This commit is contained in:
parent
a99d7716df
commit
4c9db9414f
1 changed files with 6 additions and 2 deletions
|
|
@ -38,11 +38,15 @@ export default (io: Server, socket: Socket, data: UpdatePlayer) => {
|
||||||
message: `${err.name}: ${err.message}`,
|
message: `${err.name}: ${err.message}`,
|
||||||
source: `UpdatePlayer`,
|
source: `UpdatePlayer`,
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const modifyPlayer = (io: Server, socket: Socket, data: UpdatePlayer): void => {
|
export const modifyPlayer = (
|
||||||
|
io: Server,
|
||||||
|
socket: Socket,
|
||||||
|
data: UpdatePlayer
|
||||||
|
): void => {
|
||||||
let game = games[data.game_code];
|
let game = games[data.game_code];
|
||||||
let player = game.players.find(x => x.name === data.name);
|
let player = game.players.find(x => x.name === data.name);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue