|
@@ -89,13 +89,13 @@ const extractOdds = ({ evtime, events, sptime, special }) => {
|
|
|
if (evtime > expireTimeEv) {
|
|
if (evtime > expireTimeEv) {
|
|
|
odds = { ...odds, ...events };
|
|
odds = { ...odds, ...events };
|
|
|
}
|
|
}
|
|
|
- else {
|
|
|
|
|
|
|
+ else if (events) {
|
|
|
extractData.evExpire = true;
|
|
extractData.evExpire = true;
|
|
|
}
|
|
}
|
|
|
if (sptime > expireTimeSP) {
|
|
if (sptime > expireTimeSP) {
|
|
|
odds = { ...odds, ...special };
|
|
odds = { ...odds, ...special };
|
|
|
}
|
|
}
|
|
|
- else {
|
|
|
|
|
|
|
+ else if (special) {
|
|
|
extractData.spExpire = true;
|
|
extractData.spExpire = true;
|
|
|
}
|
|
}
|
|
|
Object.keys(odds).forEach(ior => {
|
|
Object.keys(odds).forEach(ior => {
|
|
@@ -166,7 +166,7 @@ const eventMatch = () => {
|
|
|
.filter(item => item.info);
|
|
.filter(item => item.info);
|
|
|
|
|
|
|
|
if (expireEvents?.length) {
|
|
if (expireEvents?.length) {
|
|
|
- Logs.out('updateExpireEvents', expireEvents);
|
|
|
|
|
|
|
+ Logs.out('updateExpireEvents', JSON.stringify(expireEvents, null, 2));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const solutions = eventsCombination(passableEvents);
|
|
const solutions = eventsCombination(passableEvents);
|