We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a17185 commit ea70687Copy full SHA for ea70687
packages/billing/src/grant-credits.ts
@@ -68,13 +68,12 @@ export async function getPreviousFreeGrantAmount(
68
.limit(1)
69
70
if (lastExpiredFreeGrant.length > 0) {
71
- // TODO: remove this once it's past May 22nd, after all users have been migrated over
72
- const cappedAmount = Math.min(lastExpiredFreeGrant[0].principal, 2000)
+ const amount = lastExpiredFreeGrant[0].principal
73
logger.debug(
74
- { userId, amount: lastExpiredFreeGrant[0].principal },
+ { userId, amount },
75
'Found previous expired free grant amount.',
76
)
77
- return cappedAmount
+ return amount
78
} else {
79
80
{ userId, defaultAmount: DEFAULT_FREE_CREDITS_GRANT },
0 commit comments