move dashboard setting into dashboard.js

This commit is contained in:
Girish Ramakrishnan
2023-08-11 19:41:05 +05:30
parent 27ce8f9351
commit eee49a8291
25 changed files with 157 additions and 156 deletions

View File

@@ -10,8 +10,7 @@ if (process.argv[2] === '--check') {
const backuptask = require('../backuptask.js'),
database = require('../database.js'),
debug = require('debug')('box:backupupload'),
safe = require('safetydance'),
settings = require('../settings.js');
safe = require('safetydance');
// Main process starts here
const remotePath = process.argv[2];
@@ -44,7 +43,6 @@ function throttledProgressCallback(msecs) {
(async function main() {
await database.initialize();
await settings.initCache();
const [uploadError] = await safe(backuptask.upload(remotePath, format, dataLayoutString, throttledProgressCallback(5000)));
debug('upload completed. error: %o', uploadError);