diff --git a/server/utils/agentFlows/executor.js b/server/utils/agentFlows/executor.js index af42652cb..ba481c71c 100644 --- a/server/utils/agentFlows/executor.js +++ b/server/utils/agentFlows/executor.js @@ -30,9 +30,9 @@ class FlowExecutor { // Convert the variable value to string let value = this.variables[varName]; - if (value === null) return ''; + if (value === null) return ""; - if (typeof value === 'object') { + if (typeof value === "object") { try { value = JSON.stringify(value); } catch (e) { @@ -41,7 +41,7 @@ class FlowExecutor { } // If this is a URL, encode the value - if (obj.startsWith('http://') || obj.startsWith('https://')) { + if (obj.startsWith("http://") || obj.startsWith("https://")) { return encodeURIComponent(value); } diff --git a/server/utils/agentFlows/executors/api-call.js b/server/utils/agentFlows/executors/api-call.js index dfed7f689..d1d801af5 100644 --- a/server/utils/agentFlows/executors/api-call.js +++ b/server/utils/agentFlows/executors/api-call.js @@ -40,7 +40,9 @@ async function executeApiCall(config, context) { } try { - introspect(`Sending body to ${decodedUrl}: ${requestConfig?.body || "No body"}`); + introspect( + `Sending body to ${decodedUrl}: ${requestConfig?.body || "No body"}` + ); const response = await fetch(decodedUrl, requestConfig); if (!response.ok) { introspect(`Request failed with status ${response.status}`);