Update index.ts
This commit is contained in:
parent
408c7a479f
commit
43c2e877e7
@ -232,7 +232,7 @@ app.post("/v0/crawl", async (req, res) => {
|
||||
});
|
||||
app.post("/v0/crawlWebsitePreview", async (req, res) => {
|
||||
try {
|
||||
const { success, team_id, error, status } = await authenticateUser(req, res, RateLimiterMode.Crawl);
|
||||
const { success, team_id, error, status } = await authenticateUser(req, res, RateLimiterMode.Preview);
|
||||
if (!success) {
|
||||
return res.status(status).json({ error });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user