diff options
author | MinusGix <MinusGix@gmail.com> | 2019-04-28 00:21:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-28 00:21:05 +0200 |
commit | db0ff07d87ad2ea74d8962ca61c47fe1ba7a5dcb (patch) | |
tree | 36fb205079ba62fd47691dc96e50c8e7c74310f9 /server/src | |
parent | Merge pull request #62 from MinusGix/patch-2 (diff) | |
download | hackchat-db0ff07d87ad2ea74d8962ca61c47fe1ba7a5dcb.tar.gz hackchat-db0ff07d87ad2ea74d8962ca61c47fe1ba7a5dcb.zip |
Update ConfigManager.js
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/serverLib/ConfigManager.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/serverLib/ConfigManager.js b/server/src/serverLib/ConfigManager.js index 36af1ec..e29a0e7 100644 --- a/server/src/serverLib/ConfigManager.js +++ b/server/src/serverLib/ConfigManager.js @@ -62,7 +62,10 @@ class ConfigManager { const backupPath = await this.backup(); try { - fse.writeJSONSync(this.configPath, this.config); + fse.writeJSONSync(this.configPath, this.config, { + // Indent with two spaces + spaces: 2, + }); fse.removeSync(backupPath); return true; |