refactor backup flag process

This commit is contained in:
Javier 2016-08-30 17:07:49 -03:00
commit a9c4762ef7
9 changed files with 77 additions and 90 deletions

View file

@ -136,11 +136,8 @@ angular.module('copayApp.controllers').controller('backupController',
}
}
$log.debug('Backup done');
storageService.setBackupFlag(wallet.credentials.walletId, function(err) {
$log.debug('Backup stored');
return cb();
});
profileService.setBackupFlag(walletClient.credentials.walletId);
return cb();
}, 1);
};