mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-06 00:56:01 +08:00
Update credit_billing.ts
This commit is contained in:
parent
78b6127d88
commit
821c62c575
@ -55,7 +55,7 @@ export async function supaCheckTeamCredits(chunk: AuthCreditUsageChunk, team_id:
|
||||
|
||||
const creditsWillBeUsed = chunk.adjusted_credits_used + credits;
|
||||
|
||||
// In case chunk.price_credits is undefined, set it to a large number to avoid division by zero
|
||||
// In case chunk.price_credits is undefined, set it to a large number to avoid mistakes
|
||||
const totalPriceCredits = chunk.price_credits ?? 100000000;
|
||||
// Removal of + credits
|
||||
const creditUsagePercentage = creditsWillBeUsed / totalPriceCredits;
|
||||
|
Loading…
x
Reference in New Issue
Block a user