mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
fix(credit_billing): allow spending of exact credits
This commit is contained in:
parent
84bff8add8
commit
d13a97f979
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user