flyzto hai 2 semanas
pai
achega
4a82cfabbb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/models/GamesPs.js

+ 1 - 1
server/models/GamesPs.js

@@ -1529,7 +1529,7 @@ events_child.on('message', async (message) => {
       updateSolutions(data.solutions, data.eventsLogsMap);
     }
   }
-  else if (method == 'response' && id && callbacks[id]) {
+  else if (type == 'response' && id && callbacks[id]) {
     callbacks[id](data);
     delete callbacks[id];
   }