Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update credit_billing.ts
Nicolasa0113dac3753
diff --git a/apps/api/src/services/billing/credit_billing.ts b/apps/api/src/services/billing/credit_billing.tsindex 9ea0435e8..53031de96 100644--- a/apps/api/src/services/billing/credit_billing.ts+++ b/apps/api/src/services/billing/credit_billing.ts@@ -213,10 +213,8 @@ export async function supaCheckTeamCredits(team_id: string, credits: number) {// Cache the results for a minute, sub can be null and that's fineawait setValue(cacheKeySubscription, JSON.stringify(subscription), 60); // Cache for 1 minute, even if null-- if (coupons) {- await setValue(cacheKeyCoupons, JSON.stringify(coupons), 60); // Cache for 1 minute- }+ await setValue(cacheKeyCoupons, JSON.stringify(coupons), 60); // Cache for 1 minute+}let couponCredits = 0;