Skip to content

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

Add waitFor of 5000ms for changeTracking format (#1450)

devin-ai-integration[bot]6bdae3cf4fff
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index 56a93072e..780541ba1 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -282,6 +282,10 @@ const extractTransform = (obj) => {
obj = { ...obj, timeout: 60000 };
}
+ if (obj.formats?.includes("changeTracking") && (obj.waitFor === undefined || obj.waitFor < 5000)) {
+ obj = { ...obj, waitFor: 5000 };
+ }
+
if (obj.formats?.includes("json")) {
obj.formats.push("extract");
}