mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +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…
Reference in New Issue
Block a user