Skip to content

Commit

Permalink
Switch markets, adjust condition for login
Browse files Browse the repository at this point in the history
  • Loading branch information
blchelle committed Aug 29, 2024
1 parent 9a23f96 commit 6ece629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/service/odds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const getOddsData = async (): Promise<OddsData> => {
const oddsApiUrl = buildUrl(
env.oddsApi.host,
'/v4/sports/americanfootball_nfl/odds',
{ regions: 'eu', markets: 'h2h', oddsFormat: 'decimal', apiKey: env.oddsApi.apiKey }
{ regions: 'us', markets: 'h2h', oddsFormat: 'decimal', apiKey: env.oddsApi.apiKey }
)
return (await axios.get(oddsApiUrl)).data
}
2 changes: 1 addition & 1 deletion src/webscraper/getData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const login = async (page: Page, botAccount: OfpAccount): Promise<void> => {
await passwordInput.type(botAccount.password)

await Promise.all([
page.waitForSelector('#welcomeLabel', { visible: true, timeout: 0 }),
page.waitForSelector('.activePool', { visible: true }),
simulateClick(loginButton, 'Enter')
])
}
Expand Down

0 comments on commit 6ece629

Please sign in to comment.