0
0
Fork 0

Make the response use the expected property name

This commit is contained in:
Oliver-Akins 2021-01-02 18:53:48 -07:00
parent 8162396c5d
commit 45a9d3db45
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -94,7 +94,7 @@ interface SelectObject {
choice: string;
}
interface ChosenObject extends response {
object?: string;
choice?: string;
}