Skip to content

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

Fix waitFor check to handle undefined values

Devin AI4026866c15f6
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index 718cfba54..780541ba1 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -282,7 +282,7 @@ const extractTransform = (obj) => {
obj = { ...obj, timeout: 60000 };
}
- if (obj.formats?.includes("changeTracking") && obj.waitFor < 5000) {
+ if (obj.formats?.includes("changeTracking") && (obj.waitFor === undefined || obj.waitFor < 5000)) {
obj = { ...obj, waitFor: 5000 };
}