summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-02-26 23:20:02 -0500
committerFrank <[email protected]>2026-02-26 23:20:05 -0500
commit8c739b4a7db455a33fd77b4c997f2a9eaf27648a (patch)
tree80680b5391c1718d481fe507eeb9e0b8c30e9236
parentf2100dcfd8ed0786ead6e7ae0b22cec23a79dab5 (diff)
downloadopencode-8c739b4a7db455a33fd77b4c997f2a9eaf27648a.tar.gz
opencode-8c739b4a7db455a33fd77b4c997f2a9eaf27648a.zip
zen: fix go plan usage limit
-rw-r--r--packages/console/app/src/routes/zen/util/handler.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/console/app/src/routes/zen/util/handler.ts b/packages/console/app/src/routes/zen/util/handler.ts
index a6aee5368..ec6932ed4 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(