Skip to content

Commit 030d3ff

Browse files
committed
refactor(github): update calcDeepWork and calcStreak functions to use commitTimes directly
1 parent 76d7bb6 commit 030d3ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/api/github/activity.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ export const GET: APIRoute = async () => {
216216

217217
feed.sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime())
218218

219-
const deepWork = calcDeepWork(recentEvents)
220-
const streak = calcStreak(recentEvents)
219+
const deepWork = calcDeepWork(commitTimes)
220+
const streak = calcStreak(commitTimes)
221221

222222
// Commits per day for sparkline (last 14 days)
223223
const commitsByDay: Record<string, number> = {}

0 commit comments

Comments
 (0)