Skip to content

Commit ea70687

Browse files
committed
chore(billing): remove stale May 22nd migration cap TODO
The 2000 credit cap was a temporary migration safeguard that is no longer needed.
1 parent 9a17185 commit ea70687

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/billing/src/grant-credits.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,12 @@ export async function getPreviousFreeGrantAmount(
6868
.limit(1)
6969

7070
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)
71+
const amount = lastExpiredFreeGrant[0].principal
7372
logger.debug(
74-
{ userId, amount: lastExpiredFreeGrant[0].principal },
73+
{ userId, amount },
7574
'Found previous expired free grant amount.',
7675
)
77-
return cappedAmount
76+
return amount
7877
} else {
7978
logger.debug(
8079
{ userId, defaultAmount: DEFAULT_FREE_CREDITS_GRANT },

0 commit comments

Comments
 (0)