Make the response use the expected property name
This commit is contained in:
parent
8162396c5d
commit
45a9d3db45
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ export default (io: Server, socket: Socket, data: SelectObject) => {
|
|||
game.object = data.choice;
|
||||
io.to(`${game.id}:*:writer`).emit(`ChosenObject`, {
|
||||
status: 200,
|
||||
object: data.choice,
|
||||
choice: data.choice,
|
||||
});
|
||||
}
|
||||
catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue