|
|
@@ -18,7 +18,7 @@ export const getGamesRelationsMap = (hasOdds=false) => {
|
|
|
const pmOdds = Store.get('polymarket', 'odds')?.games ?? [];
|
|
|
const pmEvtime = Store.get('polymarket', 'odds')?.timestamp ?? 0;
|
|
|
const pcOdds = Store.get('pinnacle', 'odds')?.games ?? [];
|
|
|
- const hgOdds = Store.get('huanguan', 'odds')?.games ?? [];
|
|
|
+ const hgOdds = Store.get('huangguan', 'odds')?.games ?? [];
|
|
|
const obOdds = Store.get('obsports', 'odds')?.games ?? [];
|
|
|
const pmOddsMap = new Map(pmOdds.map(item => [item.id, item]));
|
|
|
const pcOddsMap = new Map(pcOdds.map(item => [item.id, item]));
|
|
|
@@ -28,10 +28,10 @@ export const getGamesRelationsMap = (hasOdds=false) => {
|
|
|
const relationsMap = {};
|
|
|
Object.entries(gamesRelations).forEach(([id, relation]) => {
|
|
|
const { platforms } = relation;
|
|
|
- const { polymarket, pinnacle, huanguan, obsports } = platforms;
|
|
|
+ const { polymarket, pinnacle, huangguan, obsports } = platforms;
|
|
|
const { id: pmId = 0 } = polymarket ?? {};
|
|
|
const { id: pcId = 0 } = pinnacle ?? {};
|
|
|
- const { id: hgId = 0 } = huanguan ?? {};
|
|
|
+ const { id: hgId = 0 } = huangguan ?? {};
|
|
|
const { id: obId = 0 } = obsports ?? {};
|
|
|
const pmGame = getGameData(pmOddsMap.get(pmId), hasOdds) ?? {};
|
|
|
const pcGame = getGameData(pcOddsMap.get(pcId), hasOdds) ?? {};
|
|
|
@@ -40,7 +40,7 @@ export const getGamesRelationsMap = (hasOdds=false) => {
|
|
|
relationsMap[id] = { ...relation, platforms: {
|
|
|
polymarket: { ...polymarket, ...pmGame, evtime: pmEvtime },
|
|
|
pinnacle: { ...pinnacle, ...pcGame },
|
|
|
- huanguan: { ...huanguan, ...hgGame },
|
|
|
+ huangguan: { ...huangguan, ...hgGame },
|
|
|
obsports: { ...obsports, ...obGame },
|
|
|
}};
|
|
|
});
|