diff options
| -rw-r--r-- | backend/file.js | 2 | ||||
| -rw-r--r-- | backend/index.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/file.js b/backend/file.js index c609232..4e54524 100644 --- a/backend/file.js +++ b/backend/file.js @@ -14,7 +14,7 @@ function loadFPayloads(config) { function saveFPayloads(config) { return R.curry((file, data) => - Future.node((cb) => fsPath.writeFile(file, JSON.stringify(data), cb)) + Future.node((cb) => fsPath.writeFile(file, JSON.stringify(data, null, 2), cb)) .map(() => { console.log(`stored ${file}`); return data; }) ); } diff --git a/backend/index.js b/backend/index.js index 3c090f7..a90dac0 100644 --- a/backend/index.js +++ b/backend/index.js @@ -33,7 +33,7 @@ function main() { config, }; const saveMetadata = (path, data) => - Future.node((cb) => fsPath.writeFile(path, JSON.stringify(data), cb)) + Future.node((cb) => fsPath.writeFile(path, JSON.stringify(data, null, 2), cb)) .map(() => data); const futures = R.map(loadFTimestamped, laterMoments); |
