flyzto пре 2 недеља
родитељ
комит
4a82cfabbb
1 измењених фајлова са 1 додато и 1 уклоњено
  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];
   }