Update index.ts
This commit is contained in:
parent
0f7ab4107f
commit
3e9e24aaf1
@ -164,7 +164,7 @@ app.post("/v0/scrape", async (req, res) => {
|
|||||||
|
|
||||||
app.post("/v0/crawl", async (req, res) => {
|
app.post("/v0/crawl", async (req, res) => {
|
||||||
try {
|
try {
|
||||||
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 });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user