edited ready button

This commit is contained in:
Wenszel
2022-05-31 17:44:55 +02:00
parent 4551885c57
commit 4083b0f5bd
5 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -49,10 +49,10 @@ module.exports = (io, socket) => {
_id: roomId,
},
room,
(err, updatedRoom) => {
err => {
if (err) return err;
// Sends to all players in room game data
io.to(roomId).emit('room:data', JSON.stringify(updatedRoom));
io.to(roomId).emit('room:data', JSON.stringify(room));
}
);
});