move dashboard setting into dashboard.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user