Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(crawl-status): rpc with get: true

Gergő Móriczde6b668ad37f
diff --git a/apps/api/src/controllers/v1/crawl-status.ts b/apps/api/src/controllers/v1/crawl-status.ts
index 0386d8372..f1cda9fdf 100644
--- a/apps/api/src/controllers/v1/crawl-status.ts
+++ b/apps/api/src/controllers/v1/crawl-status.ts
@@ -307,8 +307,8 @@ export async function crawlStatusController(
return res.status(404).json({ success: false, error: "Job expired" });
}
- const { data: scrapeJobCounts, error: scrapeJobError } = await supabase_service
- .rpc("count_jobs_of_crawl_team", { i_crawl_id: req.params.jobId, i_team_id: req.auth.team_id });
+ const { data: scrapeJobCounts, error: scrapeJobError } = await supabase_rr_service
+ .rpc("count_jobs_of_crawl_team", { i_crawl_id: req.params.jobId, i_team_id: req.auth.team_id }, { get: true });
if (scrapeJobError || !scrapeJobCounts || scrapeJobCounts.length === 0) {
logger.error("Error getting scrape job count", { error: scrapeJobError });