Revert unnecessary string cast
This commit is contained in:
parent
326c7d8841
commit
7f99ae5705
|
@ -4184,7 +4184,7 @@ function migrateSecrets() {
|
|||
try {
|
||||
let modified = false;
|
||||
const fileContents = fs.readFileSync(SETTINGS_FILE, 'utf8');
|
||||
const settings = JSON.parse(fileContents.toString());
|
||||
const settings = JSON.parse(fileContents);
|
||||
const oaiKey = settings?.api_key_openai;
|
||||
const hordeKey = settings?.horde_settings?.api_key;
|
||||
const novelKey = settings?.api_key_novel;
|
||||
|
|
Loading…
Reference in New Issue