This commit is contained in:
AlecM33
2022-12-13 14:18:17 -05:00
parent 064bf864fc
commit eb1baa0c3a
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

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