fix: revenue not showing for all time query (#6246)

This commit is contained in:
Truman Gao
2026-05-29 16:47:17 -06:00
committed by GitHub
parent 36e1cbbf3e
commit 627ab6734b
@@ -369,8 +369,10 @@ export function getAnalyticsTimeframeDurationMs({
yearStart.setHours(0, 0, 0, 0)
return now.getTime() - yearStart.getTime()
}
case 'all_time':
return REVENUE_MIN_TIMEFRAME_MS
case 'all_time': {
const allTimeDurationMs = nowTimestamp - ANALYTICS_START_TIME
return Math.max(0, allTimeDurationMs)
}
}
}