diff --git a/server/src/controllers/analytics_controller.ts b/server/src/controllers/analytics_controller.ts index 3681bc6..0098a8a 100644 --- a/server/src/controllers/analytics_controller.ts +++ b/server/src/controllers/analytics_controller.ts @@ -82,7 +82,7 @@ function getQueryRangeForLearningBySegments(segments: Segment.Segment[]) { let to = _.maxBy(segments, s => s.to).to; let diff = to - from; from -= Math.round(diff); - to += Math.round(diff); + to = Date.now(); return { from, to }; }