mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-06 05:47:19 +08:00
fix(search): delete jobs after done
This commit is contained in:
parent
2b221fd4a9
commit
efb91f9ca5
@ -103,6 +103,8 @@ export async function searchHelper(
|
||||
return { success: true, error: "No search results found", returnCode: 200 };
|
||||
}
|
||||
|
||||
await Promise.all(jobs.map(x => x.remove()));
|
||||
|
||||
// make sure doc.content is not empty
|
||||
const filteredDocs = docs.filter(
|
||||
(doc: { content?: string }) => doc.content && doc.content.trim().length > 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user