fix(credit_billing): allow spending of exact credits

This commit is contained in:
Gergő Móricz 2024-09-25 21:44:05 +02:00
parent 84bff8add8
commit d13a97f979
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export async function supaCheckTeamCredits(chunk: AuthCreditUsageChunk, team_id:
const creditUsagePercentage = creditsWillBeUsed / chunk.price_credits;
// Compare the adjusted total credits used with the credits allowed by the plan
if (creditsWillBeUsed >= chunk.price_credits) {
if (creditsWillBeUsed > chunk.price_credits) {
sendNotification(
team_id,
NotificationType.LIMIT_REACHED,