Fix Horde key migration

This commit is contained in:
SillyLossy
2023-05-12 12:04:41 +03:00
parent 7e7a67d28c
commit 71102fe7fa

View File

@@ -2813,7 +2813,7 @@ function migrateSecrets() {
if (typeof hordeKey === 'string') { if (typeof hordeKey === 'string') {
console.log('Migrating Horde key...'); console.log('Migrating Horde key...');
writeSecret(SECRET_KEYS.HORDE, hordeKey); writeSecret(SECRET_KEYS.HORDE, hordeKey);
delete settings.hordeKey; delete settings.horde_settings.api_key;
modified = true; modified = true;
} }
@@ -2885,6 +2885,7 @@ app.post('/generate_horde', jsonParser, async (request, response) => {
} }
}; };
console.log(args.data);
try { try {
const data = await postAsync(url, args); const data = await postAsync(url, args);
return response.send(data); return response.send(data);