0

Update index.ts

This commit is contained in:
Nicolas 2024-04-17 10:57:01 -07:00
parent 82ed9515f1
commit 417921ea33

View File

@ -87,7 +87,7 @@ async function authenticateUser(req, res, mode?: string): Promise<{ success: boo
app.post("/v0/scrape", async (req, res) => { app.post("/v0/scrape", async (req, res) => {
try { try {
// make sure to authenticate user first, Bearer <token> // make sure to authenticate user first, Bearer <token>
const { success, team_id, error, status } = await authenticateUser(req, res, "scrape"); const { success, team_id, error, status } = await authenticateUser(req, res, "crawl");
if (!success) { if (!success) {
return res.status(status).json({ error }); return res.status(status).json({ error });
} }