We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 362bb26 commit dc6cbddCopy full SHA for dc6cbdd
1 file changed
app/api/wrapped/route.ts
@@ -93,9 +93,9 @@ export async function GET(request: Request) {
93
94
// Fetch the wrapped stats for the year (calendar is included to avoid a duplicate API call)
95
const wrappedStats = await getWrappedData(user, year, { bypassCache: refresh });
96
- const { calendar, ...statsOnly } = wrappedStats;
+
97
98
- const svg = generateWrappedSVG(statsOnly, params, year, calendar);
+ const svg = generateWrappedSVG(wrappedStats, params, year, wrappedStats.calendar);
99
100
// Cache-Control: Annual wrapped stats are stable, cache for 24 hours.
101
// Clients can bust with ?refresh=true.
0 commit comments