Skip to content

The open source coding agent.

TypeScript

zen: fix go plan usage limit

Frank8c739b4a7db4
diff --git a/packages/console/app/src/routes/zen/util/handler.ts b/packages/console/app/src/routes/zen/util/handler.ts
index a6aee5368e3..ec6932ed42e 100644
--- a/packages/console/app/src/routes/zen/util/handler.ts
+++ b/packages/console/app/src/routes/zen/util/handler.ts
@@ -654,12 +654,12 @@ export async function handler(
}
// Check rolling limit
- if (sub.monthlyUsage && sub.timeMonthlyUpdated) {
+ if (sub.rollingUsage && sub.timeRollingUpdated) {
const result = Subscription.analyzeRollingUsage({
limit: liteData.rollingLimit,
window: liteData.rollingWindow,
- usage: sub.monthlyUsage,
- timeUpdated: sub.timeMonthlyUpdated,
+ usage: sub.rollingUsage,
+ timeUpdated: sub.timeRollingUpdated,
})
if (result.status === "rate-limited")
throw new SubscriptionUsageLimitError(