Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(api/log_job/logScrape): do not attempt to insert change tracking records for preview team scrapes

mogery6f9252652990
diff --git a/apps/api/src/services/logging/log_job.ts b/apps/api/src/services/logging/log_job.ts
index 7d7ce53bc..2ae43c708 100644
--- a/apps/api/src/services/logging/log_job.ts
+++ b/apps/api/src/services/logging/log_job.ts
@@ -294,7 +294,8 @@ export async function logScrape(scrape: LoggedScrape, force: boolean = false) {
!scrape.is_parse &&
scrape.is_successful &&
!scrape.zeroDataRetention &&
- config.USE_DB_AUTHENTICATION
+ config.USE_DB_AUTHENTICATION &&
+ !scrape.team_id.startsWith("preview_")
) {
const hasMarkdown = hasFormatOfType(scrape.options.formats, "markdown");
const hasChangeTracking = hasFormatOfType(