mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 17:59:07 +08:00
Update log_job.ts
This commit is contained in:
parent
59d09f5c45
commit
ec90aaffd6
@ -23,6 +23,11 @@ function cleanOfNull<T>(x: T): T {
|
||||
|
||||
async function indexJob(job: FirecrawlJob): Promise<void> {
|
||||
try {
|
||||
// Skip indexing for anything except single_urls and scrape modes
|
||||
if (job.mode !== "single_urls" && job.mode !== "scrape") {
|
||||
return;
|
||||
}
|
||||
|
||||
const response = await fetch(`${process.env.FIRE_INDEX_SERVER_URL}/api/jobs`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user