@@ -38,8 +38,8 @@ const resetVersionsCount = () => {
}
const incrementVersionsCount = () => {
- GLOBAL_DATA.straightFixturesCount = 0;
- GLOBAL_DATA.specialFixturesCount = 0;
+ GLOBAL_DATA.straightFixturesCount += 1;
+ GLOBAL_DATA.specialFixturesCount += 1;
@@ -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];