Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyrushton committed Apr 18, 2024
1 parent 4a16afb commit df7f55c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/scrapes/scrape-schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface IScheduleScrape {
opponent_name: string
opponent_score: number
home_score: number
gameType: 'REGULAR' | 'PLAYOFF'
type: 'REGULAR' | 'PLAYOFF'
}

const convertTime12to24 = (time12h: string): string => {
Expand Down Expand Up @@ -99,7 +99,7 @@ export const scrapeSchedule = async (): Promise<IScheduleScrape[]> => {
opponent_name: opponentName,
opponent_score: home ? opponentScore : teamScore,
home_score: home ? teamScore : opponentScore,
gameType: gameCount > 82 ? 'PLAYOFF' : 'REGULAR',
type: gameCount > 82 ? 'PLAYOFF' : 'REGULAR',
})
}
}
Expand Down

0 comments on commit df7f55c

Please sign in to comment.