Use result in db instead of ipc

This commit is contained in:
Girish Ramakrishnan
2018-11-29 15:16:31 -08:00
parent d9f3f64c76
commit 2f729b56fa
6 changed files with 34 additions and 49 deletions

View File

@@ -32,7 +32,8 @@ function createBackup(callback) {
if (p.percent !== 100) return setTimeout(waitForBackup, 1000);
if (p.result) return callback(new Error('backup failed:' + p.result));
if (p.errorMessage) return callback(new Error('backup failed:' + p));
if (!p.result) return callback(new Error('backup has no result:' + p));
backups.getByStatePaged(backupdb.BACKUP_STATE_NORMAL, 1, 1, function (error, result) {
if (error) return callback(error);