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
chore(billing): stop populating the billed_teams tally set (#3992)
firecrawl-spring[bot]2c9ea09266df
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.tsindex f9b4e05bc..b19c01aec 100644--- a/apps/api/src/controllers/auth.ts+++ b/apps/api/src/controllers/auth.ts@@ -6,7 +6,6 @@ import { logger } from "../lib/logger";import { parseApi } from "../lib/parseApi";import { withAuth } from "../lib/withAuth";import { getAgentSponsorStatus } from "../services/agent-sponsor";-import { getRedisConnection } from "../services/queue-service";import { getRateLimiter } from "../services/rate-limiter";import {KEYLESS_FREE_TIER_LIMIT_MESSAGE,@@ -455,9 +454,6 @@ export async function clearACUCTeam(team_id: string): Promise<void> {// Also clear the base cache keyawait deleteKey(`acuc_team_${team_id}`);-- // Add team to billed_teams set so tally gets updated too- await getRedisConnection().sadd("billed_teams", team_id);}const KEYLESS_ENDPOINT_NOT_AVAILABLE_MESSAGE = `This endpoint is not supported by the keyless free tier. Sign up for a free API key at https://www.firecrawl.dev/signin for more endpoints, more usage, and higher rate limits.diff --git a/apps/api/src/services/billing/batch_billing.ts b/apps/api/src/services/billing/batch_billing.tsindex 6e98f8c1b..d2bb64fc5 100644--- a/apps/api/src/services/billing/batch_billing.ts+++ b/apps/api/src/services/billing/batch_billing.ts@@ -372,14 +372,6 @@ async function supaBillTeam(return { success: false, error };}- // Fire-and-forget — a Redis failure here must not trigger a false Autumn refund- // after bill_team_6 has already committed.- getRedisConnection()- .sadd("billed_teams", team_id)- .catch(err => {- _logger.warn("Failed to add team to billed_teams set", { err, team_id });- });-return { success: true, data };}