|
@@ -672,7 +672,7 @@ const compareCpr = (cpr1, cpr2) => {
|
|
|
return key1 === key2;
|
|
return key1 === key2;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const updateSolutions = (solutions) => {
|
|
|
|
|
|
|
+const updateSolutions = (solutions, eventsLogsMap) => {
|
|
|
|
|
|
|
|
if (solutions?.length) {
|
|
if (solutions?.length) {
|
|
|
const solutionsHistory = GAMES.Solutions;
|
|
const solutionsHistory = GAMES.Solutions;
|
|
@@ -716,6 +716,12 @@ const updateSolutions = (solutions) => {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ Logs.out('invalid events, expire %d, remove %d, no ps %d',
|
|
|
|
|
+ eventsLogsMap.expireEvents.length,
|
|
|
|
|
+ eventsLogsMap.removeEvents.length,
|
|
|
|
|
+ eventsLogsMap.noPsRelations.length,
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
Logs.out('solutions add %d, update %d, retain %d, remove %d',
|
|
Logs.out('solutions add %d, update %d, retain %d, remove %d',
|
|
|
solutionUpdate.add.length, solutionUpdate.update.length, solutionUpdate.retain.length, solutionUpdate.remove.length);
|
|
solutionUpdate.add.length, solutionUpdate.update.length, solutionUpdate.retain.length, solutionUpdate.remove.length);
|
|
|
|
|
|
|
@@ -894,7 +900,7 @@ events_child.on('message', async (message) => {
|
|
|
}
|
|
}
|
|
|
else if (method == 'post') {
|
|
else if (method == 'post') {
|
|
|
if (type == 'updateSolutions') {
|
|
if (type == 'updateSolutions') {
|
|
|
- updateSolutions(data);
|
|
|
|
|
|
|
+ updateSolutions(data.solutions, data.eventsLogsMap);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
else if (method == 'response' && id && callbacks[id]) {
|
|
else if (method == 'response' && id && callbacks[id]) {
|