diff --git a/server/model/Game.js b/server/model/Game.js index 0cabb91..c6a5bcc 100644 --- a/server/model/Game.js +++ b/server/model/Game.js @@ -18,7 +18,7 @@ class Game { this.deck = deck; this.gameSize = deck.reduce( (accumulator, currentValue) => accumulator + currentValue.quantity, - 0, + 0 ); this.hasTimer = hasTimer; this.hasDedicatedModerator = hasDedicatedModerator; diff --git a/server/modules/SocketManager.js b/server/modules/SocketManager.js index 1e6851b..515431c 100644 --- a/server/modules/SocketManager.js +++ b/server/modules/SocketManager.js @@ -45,7 +45,7 @@ class SocketManager { }; registerHandlers = (namespace, socket, gameManager) => { - socket.on(globals.SOCKET_EVENTS.IN_GAME_MESSAGE, async (eventId, accessCode, args=null, ackFn=null) => { + socket.on(globals.SOCKET_EVENTS.IN_GAME_MESSAGE, async (eventId, accessCode, args = null, ackFn = null) => { const game = gameManager.activeGameRunner.activeGames.get(accessCode); if (game) { switch (eventId) {