Update credit_billing.ts
Some checks are pending
Deploy Images to GHCR / push-app-image (push) Waiting to run

This commit is contained in:
Nicolas 2024-10-16 01:09:57 -03:00
parent e5a5ca2446
commit cf8fe93281

View File

@ -72,7 +72,7 @@ export async function supaCheckTeamCredits(chunk: AuthCreditUsageChunk, team_id:
chunk
);
}
return { success: false, message: "Insufficient credits. For more credits, you can upgrade your plan at https://firecrawl.dev/pricing.", remainingCredits: chunk.remaining_credits, chunk };
return { success: false, message: "Insufficient credits to perform this request. For more credits, you can upgrade your plan at https://firecrawl.dev/pricing.", remainingCredits: chunk.remaining_credits, chunk };
} else if (creditUsagePercentage >= 0.8 && creditUsagePercentage < 1) {
// Send email notification for approaching credit limit
sendNotification(