From de6b668ad37f7208109b9be621300db2e9d2dcad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Mon, 28 Jul 2025 22:45:42 +0200 Subject: [PATCH] fix(crawl-status): rpc with get: true --- apps/api/src/controllers/v1/crawl-status.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 });