|
|
@@ -136,7 +136,7 @@ const eventsCombination = (passableEvents) => {
|
|
|
const optimalSelections = getOptimalSelections(odds, rules);
|
|
|
|
|
|
optimalSelections.forEach(selection => {
|
|
|
- const { rule, iors, index } = selection;
|
|
|
+ const { rule, iors, ruleIndex } = selection;
|
|
|
const [, , , crossType] = rule;
|
|
|
const oddsSideA = attachRebate(iors[0]);
|
|
|
const oddsSideB = attachRebate(iors[1]);
|
|
|
@@ -166,7 +166,7 @@ const eventsCombination = (passableEvents) => {
|
|
|
const sid = crypto.createHash('sha1').update(`${id}_${keys}`).digest('hex');
|
|
|
const crpGroup = `${id}_${sortedCpr[0].k}`;
|
|
|
const timestamp = Date.now();
|
|
|
- solutions.push({sid, sol, cpr, info, group: crpGroup, rule: `${iorGroup}:${index}`, timestamp});
|
|
|
+ solutions.push({sid, sol, cpr, info, group: crpGroup, rule: `${iorGroup}:${ruleIndex}`, timestamp});
|
|
|
}
|
|
|
});
|
|
|
});
|