Fix date inconsistencies in Favorite Days and Reading Session Timeline charts (#2096)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-01 17:34:33 -07:00
committed by GitHub
co-authored by acx10
parent c7cfe266d4
commit 6394d1ef04
8 changed files with 92 additions and 90 deletions
@@ -59,14 +59,14 @@ export class UserStatsService {
getHeatmapForYear(year: number): Observable<ReadingSessionHeatmapResponse[]> {
return this.http.get<ReadingSessionHeatmapResponse[]>(
`${this.readingSessionsUrl}/heatmap`,
{ params: { year: year.toString() } }
{params: {year: year.toString()}}
);
}
getTimelineForWeek(year: number, month: number, week: number): Observable<ReadingSessionTimelineResponse[]> {
getTimelineForWeek(year: number, week: number): Observable<ReadingSessionTimelineResponse[]> {
return this.http.get<ReadingSessionTimelineResponse[]>(
`${this.readingSessionsUrl}/timeline`,
{ params: { year: year.toString(), month: month.toString(), week: week.toString() } }
{params: {year: year.toString(), week: week.toString()}}
);
}
@@ -79,7 +79,7 @@ export class UserStatsService {
getCompletionTimelineForYear(year: number): Observable<CompletionTimelineResponse[]> {
return this.http.get<CompletionTimelineResponse[]>(
`${this.readingSessionsUrl}/completion-timeline`,
{ params: { year: year.toString() } }
{params: {year: year.toString()}}
);
}