Nick: scrape id when origin is website for report system

This commit is contained in:
Nicolas 2024-09-02 18:43:52 -03:00
parent 11971da359
commit 00dacaf935
2 changed files with 2 additions and 0 deletions

View File

@ -147,5 +147,6 @@ export async function scrapeController(
return res.status(200).json({
success: true,
data: legacyDocumentConverter(doc),
scrape_id: origin === "website" ? jobId : undefined,
});
}

View File

@ -225,6 +225,7 @@ export type ScrapeResponse =
success: true;
warning?: string;
data: Document;
scrape_id?: string;
};
export interface ScrapeResponseRequestTest {