From 304b2a5c61853e4e71f0216a086d1344688408bb Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 10 Sep 2024 16:45:32 +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 0760a6c692..70b2279f6c 100644 --- a/packages/worker/src/api/controllers/global/configs.ts +++ b/packages/worker/src/api/controllers/global/configs.ts @@ -215,7 +215,7 @@ export async function verifyAIConfig( existingConfig: AIConfig ) { // ensure that the redacted API keys are not overwritten in the DB - for (let uuid in existingConfig.config) { + for (const uuid in existingConfig.config) { if (configToSave[uuid]?.apiKey === PASSWORD_REPLACEMENT) { configToSave[uuid].apiKey = existingConfig.config[uuid].apiKey }