From f368a9c63de36cdf080242e54089e14be50b1dd0 Mon Sep 17 00:00:00 2001 From: Nigel Nindo Date: Thu, 19 Oct 2023 15:53:58 +0300 Subject: [PATCH] correct orbit odds avergaing --- src/core/parsers/orbit/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/parsers/orbit/index.ts b/src/core/parsers/orbit/index.ts index 395051a..e0932a8 100644 --- a/src/core/parsers/orbit/index.ts +++ b/src/core/parsers/orbit/index.ts @@ -63,8 +63,8 @@ export class OrbitParser extends BaseParser { betProviderId: `${item.clubA}_${item.clubB}_${item.eventDate}`, // TODO: create id creator on specific betProvider class clubA: item.clubA, clubB: item.clubB, - oddsAWin: (item.oddsArray[0], item.oddsArray[1]) / 2, - oddsBWin: (item.oddsArray[2], item.oddsArray[3]) / 2, + oddsAWin: (item.oddsArray[0] + item.oddsArray[1]) / 2, + oddsBWin: (item.oddsArray[2] + item.oddsArray[3]) / 2, league: "N/A", estimatedStartTimeUtc: item.estimatedStartTimeUtc, meta: JSON.stringify({ @@ -86,9 +86,9 @@ export class OrbitParser extends BaseParser { betProviderId: `${item.clubA}_${item.clubB}_${item.eventDate}`, clubA: item.clubA, clubB: item.clubB, - oddsAWin: (item.oddsArray[0], item.oddsArray[1]) / 2, - oddsBWin:(item.oddsArray[4], item.oddsArray[5]) / 2, - oddsDraw: (item.oddsArray[2], item.oddsArray[3]) / 2, + oddsAWin: (item.oddsArray[0] + item.oddsArray[1]) / 2, + oddsBWin:(item.oddsArray[4] + item.oddsArray[5]) / 2, + oddsDraw: (item.oddsArray[2] + item.oddsArray[3]) / 2, league: "N/A", estimatedStartTimeUtc: item.estimatedStartTimeUtc, meta: JSON.stringify({