Update crawl-status.ts
This commit is contained in:
@@ -94,7 +94,8 @@ export async function crawlStatusController(req: RequestWithAuth<CrawlStatusPara
|
|||||||
|
|
||||||
const data = doneJobs.map(x => x.returnvalue);
|
const data = doneJobs.map(x => x.returnvalue);
|
||||||
|
|
||||||
const nextURL = new URL(`${req.protocol}://${req.get("host")}/v1/crawl/${req.params.jobId}`);
|
const protocol = process.env.ENV === "local" ? req.protocol : "https";
|
||||||
|
const nextURL = new URL(`${protocol}://${req.get("host")}/v1/crawl/${req.params.jobId}`);
|
||||||
|
|
||||||
nextURL.searchParams.set("skip", (start + data.length).toString());
|
nextURL.searchParams.set("skip", (start + data.length).toString());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user