Skip to content

Commit

Permalink
Merge pull request #5 from hackbg/main
Browse files Browse the repository at this point in the history
Adjust season
  • Loading branch information
danielgruesso authored Jan 4, 2024
2 parents f1d492f + c39bad1 commit 6d05128
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
remotePatterns: [
{
protocol: 'https',
hostname: 'media-?.api-sports.io',
hostname: 'media*.api-sports.io',
},
],
},
Expand Down
5 changes: 4 additions & 1 deletion app/src/config/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export const liveGameStatuses = ['1H', '2H', 'HT', 'ET', 'BT', 'PT']

export const currentGameStatuses = ['NS', ...liveGameStatuses]

export const currentSeason = new Date().getFullYear()
const currentMonth = new Date().getMonth()

export const currentSeason =
currentMonth < 6 ? new Date().getFullYear() - 1 : new Date().getFullYear()

export const leaguesCountLimit = 5

Expand Down

0 comments on commit 6d05128

Please sign in to comment.