Skip to content

Commit 8c739b4

Browse files
committed
zen: fix go plan usage limit
1 parent f2100dc commit 8c739b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/console/app/src/routes/zen/util

packages/console/app/src/routes/zen/util/handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,12 @@ export async function handler(
654654
}
655655

656656
// Check rolling limit
657-
if (sub.monthlyUsage && sub.timeMonthlyUpdated) {
657+
if (sub.rollingUsage && sub.timeRollingUpdated) {
658658
const result = Subscription.analyzeRollingUsage({
659659
limit: liteData.rollingLimit,
660660
window: liteData.rollingWindow,
661-
usage: sub.monthlyUsage,
662-
timeUpdated: sub.timeMonthlyUpdated,
661+
usage: sub.rollingUsage,
662+
timeUpdated: sub.timeRollingUpdated,
663663
})
664664
if (result.status === "rate-limited")
665665
throw new SubscriptionUsageLimitError(

0 commit comments

Comments
 (0)