'Buffer' is not assignable to param 'string'

This commit is contained in:
RealBeepMcJeep 2023-08-30 07:42:34 -07:00
parent 274b2e5009
commit c703b0b25e
1 changed files with 2 additions and 2 deletions

View File

@ -4871,7 +4871,7 @@ function writeSecret(key, value) {
}
const fileContents = fs.readFileSync(SECRETS_FILE);
const secrets = JSON.parse(fileContents);
const secrets = JSON.parse(fileContents.toString());
secrets[key] = value;
writeFileAtomicSync(SECRETS_FILE, JSON.stringify(secrets), "utf-8");
}
@ -4882,7 +4882,7 @@ function readSecret(key) {
}
const fileContents = fs.readFileSync(SECRETS_FILE);
const secrets = JSON.parse(fileContents);
const secrets = JSON.parse(fileContents.toString());
return secrets[key];
}