Skip to content

Commit d1f3b96

Browse files
committed
feat: add scrapeId in document.metadata
1 parent 29c1f12 commit d1f3b96

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/api/src/controllers/v1/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ export type Document = {
443443
url?: string;
444444
sourceURL?: string;
445445
statusCode: number;
446+
scrapeId?: string;
446447
error?: string;
447448
[key: string]: string | string[] | number | undefined;
448449
};

apps/api/src/scraper/scrapeURL/lib/extractMetadata.ts

+1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export function extractMetadata(
156156
publishedTime,
157157
articleTag,
158158
articleSection,
159+
scrapeId: meta.id,
159160
...customMetadata,
160161
};
161162
}

0 commit comments

Comments
 (0)