From 7a376d96295b1fd3d8d0367e2faf7d898c0dce53 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 10 Sep 2024 10:26:18 +0100 Subject: [PATCH] Update packages/worker/src/api/controllers/global/configs.ts Co-authored-by: Sam Rose --- packages/worker/src/api/controllers/global/configs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker/src/api/controllers/global/configs.ts b/packages/worker/src/api/controllers/global/configs.ts index ffe7a1c717..5345c25bc2 100644 --- a/packages/worker/src/api/controllers/global/configs.ts +++ b/packages/worker/src/api/controllers/global/configs.ts @@ -335,7 +335,7 @@ function enrichOIDCLogos(oidcLogos: OIDCLogosConfig) { async function enrichAIConfig(aiConfig: AIConfig) { // Strip out the API Keys from the response so they don't show in the UI - for (let key in aiConfig.config) { + for (const key in aiConfig.config) { if (aiConfig.config[key].apiKey) { aiConfig.config[key].apiKey = PASSWORD_REPLACEMENT }