From ab0a50bb3cf22c9213b2e120a509cb4a823cf983 Mon Sep 17 00:00:00 2001 From: Daniel Estoll Date: Thu, 24 Jul 2025 14:57:26 -0600 Subject: [PATCH 1/2] assigned scrub to a variable instead of just doing nothing with it --- templates/api-index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/api-index.js b/templates/api-index.js index f67287d..64428a5 100644 --- a/templates/api-index.js +++ b/templates/api-index.js @@ -98,7 +98,7 @@ const executeApiFunction = (id, clientID, polyCustom, requestArgs) => { }) }).then(({ headers, data, status }) => { if (status && (status < 200 || status >= 300) && process.env.LOGS_ENABLED) { - scrub(requestArgs) + requestArgs = scrub(requestArgs) console.error('Error direct executing api function with id:', id, 'Status code:', status, 'Request data:', requestArgs, 'Response data:', data.data); } const apiExecutionTimeMs = Date.now() - requestApiStartTime; @@ -130,7 +130,7 @@ const executeApiFunction = (id, clientID, polyCustom, requestArgs) => { try { responseData = JSON.stringify(data.data); } catch (err) {} - scrub(requestArgs) + requestArgs = scrub(requestArgs) console.error('Error executing api function with id:', id, 'Status code:', data.status, 'Request data:', requestArgs, 'Response data:', responseData); } const serverExecutionTimeMs = Number(headers['x-poly-execution-duration']); From 348b1025c06af4d9d33ee857347df1e4e6374d33 Mon Sep 17 00:00:00 2001 From: Dan Fellin Date: Fri, 25 Jul 2025 06:16:00 -0700 Subject: [PATCH 2/2] update --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0e461be..14c99aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polyapi", - "version": "0.24.12", + "version": "0.24.13", "description": "Poly is a CLI tool to help create and manage your Poly definitions.", "license": "MIT", "repository": {