|
|
@@ -689,7 +689,7 @@ const updateSolutions = (solutions, eventsLogsMap) => {
|
|
|
const solutionsHistory = GAMES.Solutions;
|
|
|
const updateIds = { add: [], update: [], retain: [], remove: [] }
|
|
|
solutions.forEach(item => {
|
|
|
- const { sid, cpr, sol: { win_average } } = item;
|
|
|
+ const { sid, cpr, sol: { win_average, win_profit_rate } } = item;
|
|
|
|
|
|
if (!solutionsHistory[sid]) {
|
|
|
solutionsHistory[sid] = item;
|
|
|
@@ -698,7 +698,9 @@ const updateSolutions = (solutions, eventsLogsMap) => {
|
|
|
}
|
|
|
|
|
|
const historySolution = solutionsHistory[sid];
|
|
|
- if (historySolution.sol.win_average !== win_average || !compareCpr(historySolution.cpr, cpr)) {
|
|
|
+ if (historySolution.sol.win_average !== win_average ||
|
|
|
+ historySolution.sol.win_profit_rate !== win_profit_rate ||
|
|
|
+ !compareCpr(historySolution.cpr, cpr)) {
|
|
|
solutionsHistory[sid] = item;
|
|
|
updateIds.update.push(sid);
|
|
|
return;
|