From 95be147eb4b409987e6c8bd09a8d7a8e6a7c2fd7 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 10 Feb 2024 10:40:56 +0100 Subject: [PATCH] make config.json readable --- src/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.js b/src/apps.js index ebf09e92e..86a9b68b2 100644 --- a/src/apps.js +++ b/src/apps.js @@ -2857,7 +2857,7 @@ async function uploadFile(app, sourceFilePath, destFilePath) { async function backupConfig(app) { assert.strictEqual(typeof app, 'object'); - if (!safe.fs.writeFileSync(path.join(paths.APPS_DATA_DIR, app.id + '/config.json'), JSON.stringify(app))) { + if (!safe.fs.writeFileSync(path.join(paths.APPS_DATA_DIR, app.id + '/config.json'), JSON.stringify(app, null, 4))) { throw new BoxError(BoxError.FS_ERROR, 'Error creating config.json: ' + safe.error.message); }