We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2100dc commit 8c739b4Copy full SHA for 8c739b4
1 file changed
packages/console/app/src/routes/zen/util/handler.ts
@@ -654,12 +654,12 @@ export async function handler(
654
}
655
656
// Check rolling limit
657
- if (sub.monthlyUsage && sub.timeMonthlyUpdated) {
+ if (sub.rollingUsage && sub.timeRollingUpdated) {
658
const result = Subscription.analyzeRollingUsage({
659
limit: liteData.rollingLimit,
660
window: liteData.rollingWindow,
661
- usage: sub.monthlyUsage,
662
- timeUpdated: sub.timeMonthlyUpdated,
+ usage: sub.rollingUsage,
+ timeUpdated: sub.timeRollingUpdated,
663
})
664
if (result.status === "rate-limited")
665
throw new SubscriptionUsageLimitError(
0 commit comments