Update credit_billing.ts

This commit is contained in:
Nicolas 2024-09-04 16:54:20 -03:00
parent b8e9c445f9
commit a0113dac37

View File

@ -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 fine
await 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
}
}
let couponCredits = 0;