Skip to content

Commit

Permalink
🚑 Fixed invalid ioredis expiry usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecarr committed Dec 17, 2021
1 parent fe07525 commit bb1694a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pages/api/daily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const getCsvText = async () => {
const zip = new AdmZip(zipData)
const csvText = zip.readAsText('data/table_1b_daily_attendance_in_state_schools_during_covid_19_.csv', 'utf8')

cache && await cache.set('daily_attendance', csvText, 1000 * 60 * 60 * 24)
cache && await cache.set('daily_attendance', csvText, 'ex', 60 * 60 * 24)

return csvText
}
Expand Down

1 comment on commit bb1694a

@vercel
Copy link

@vercel vercel bot commented on bb1694a Dec 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.