Skip to content

Commit 72925d9

Browse files
fix(wrapped): pass wrappedStats directly to generateWrappedSVG
1 parent dc6cbdd commit 72925d9

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

app/api/wrapped/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ export async function GET(request: Request) {
9090
scale: 'linear',
9191
};
9292

93-
9493
// Fetch the wrapped stats for the year (calendar is included to avoid a duplicate API call)
9594
const wrappedStats = await getWrappedData(user, year, { bypassCache: refresh });
96-
9795

9896
const svg = generateWrappedSVG(wrappedStats, params, year, wrappedStats.calendar);
9997

0 commit comments

Comments
 (0)