Skip to content

Commit

Permalink
Add return type to getTodayUrl function
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Feb 2, 2024
1 parent 74e1d74 commit 45e619d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ console.log(`Server is running at ${app.server?.hostname}:${app.server?.port}`)
* @param sport - sport to fetch
* @param division - division to fetch
*/
async function getTodayUrl(sport: string, division: string) {
async function getTodayUrl(sport: string, division: string): Promise<string> {
// check cache
const cacheKey = `today-${sport}-${division}`
if (cache.has(cacheKey)) {
Expand Down

0 comments on commit 45e619d

Please sign in to comment.