Skip to content

Commit

Permalink
feat: add scrapeId in document.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mogery committed Jan 9, 2025
1 parent 29c1f12 commit d1f3b96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/controllers/v1/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ export type Document = {
url?: string;
sourceURL?: string;
statusCode: number;
scrapeId?: string;
error?: string;
[key: string]: string | string[] | number | undefined;
};
Expand Down
1 change: 1 addition & 0 deletions apps/api/src/scraper/scrapeURL/lib/extractMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export function extractMetadata(
publishedTime,
articleTag,
articleSection,
scrapeId: meta.id,
...customMetadata,
};
}

0 comments on commit d1f3b96

Please sign in to comment.