Skip to content

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

added team_id to scrape-status endpoint

rafaelmmiller77e152cba8f7
diff --git a/apps/api/src/controllers/v1/scrape-status.ts b/apps/api/src/controllers/v1/scrape-status.ts
index db50f7d3d..b7f19a3b7 100644
--- a/apps/api/src/controllers/v1/scrape-status.ts
+++ b/apps/api/src/controllers/v1/scrape-status.ts
@@ -11,8 +11,12 @@ export async function scrapeStatusController(req: any, res: any) {
await rateLimiter.consume(iptoken);
const job = await supabaseGetJobByIdOnlyData(req.params.jobId);
+ const allowedTeams = [
+ "41bdbfe1-0579-4d9b-b6d5-809f16be12f5",
+ "511544f2-2fce-4183-9c59-6c29b02c69b5"
+ ];
- if(job?.team_id !== "41bdbfe1-0579-4d9b-b6d5-809f16be12f5"){
+ if(!allowedTeams.includes(job?.team_id)){
return res.status(403).json({
success: false,
error: "You are not allowed to access this resource.",