From cb87d336b718dfa0630acbe9aba51f83d11e59af Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Thu, 6 May 2021 19:25:53 +0930 Subject: [PATCH] fix: upc apikey path --- app/core/api-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/api-manager.ts b/app/core/api-manager.ts index 9bf4e1a96..60ed3aec7 100644 --- a/app/core/api-manager.ts +++ b/app/core/api-manager.ts @@ -79,7 +79,7 @@ export class ApiManager extends EventEmitter { const upcApiKey = dotProp.get(file, 'upc.apikey')! as string; if (!upcApiKey) { const apiKey = `unupc_${crypto.randomBytes(58).toString('hex')}`; - fs.writeFileSync('./config_modified.ini', ini.stringify({ remote: { apikey: apiKey } }, { section: 'upc' })); + fs.writeFileSync(configPath, ini.stringify({ apikey: apiKey }, { section: 'upc' })); this.replace('upc', apiKey, { // @todo: fix UPC being root userId: '0'