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 apps/api/src/controllers/v2/search.ts
Nicolasc0a4a7736ba3
diff --git a/apps/api/src/controllers/v2/search.ts b/apps/api/src/controllers/v2/search.tsindex 3840c79d6..abc594ee4 100644--- a/apps/api/src/controllers/v2/search.ts+++ b/apps/api/src/controllers/v2/search.ts@@ -547,7 +547,7 @@ export async function searchController(// - For no scraping: Bill based on search results countif (!isSearchPreview && (!shouldScrape || (shouldScrape && !isAsyncScraping))) {billTeam(req.auth.team_id, req.acuc?.sub_id, credits_billed).catch((error) => {- logger.error(`Failed to bill team ${req.auth.team_id} for ${credits_billed} credits: ${error}`);+ logger.error("Failed to bill team", { teamId: req.auth.team_id, subId: req.acuc?.sub_id, credits_billed, error });});}