1
0
Fork 0
mirror of synced 2024-09-18 02:08:34 +12:00

Update packages/worker/src/api/controllers/global/configs.ts

Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
Martin McKeaveney 2024-09-10 16:45:32 +01:00 committed by GitHub
parent 87adb99073
commit 304b2a5c61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}