From 6112cc1c2c640d3a2e9bcffb56dc835777c8e6bb Mon Sep 17 00:00:00 2001 From: Nicolas Date: Thu, 18 Apr 2024 10:34:41 -0700 Subject: [PATCH] Update index.ts --- apps/api/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts index fad8fa3..7a34214 100644 --- a/apps/api/src/index.ts +++ b/apps/api/src/index.ts @@ -87,7 +87,7 @@ async function authenticateUser(req, res, mode?: string): Promise<{ success: boo app.post("/v0/scrape", async (req, res) => { try { // make sure to authenticate user first, Bearer - const { success, team_id, error, status } = await authenticateUser(req, res, "crawl"); + const { success, team_id, error, status } = await authenticateUser(req, res, "scrape"); if (!success) { return res.status(status).json({ error }); }