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); }