mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #2876 from cmgustavo/bug/scan-all-addresses-02
Replaces *for* by *lodash* functions
This commit is contained in:
commit
e194bb6c7e
|
@ -771,12 +771,11 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
storageService.getCleanAndScanAddresses(function(err, val) {
|
||||
if (val) {
|
||||
$log.debug('Clear last address cache and Scan');
|
||||
var wallets = profileService.walletClients;
|
||||
for (var walletId in wallets) {
|
||||
lodash.each(lodash.keys(profileService.walletClients), function(walletId) {
|
||||
storageService.clearLastAddress(walletId, function(err) {
|
||||
self.startScan(walletId);
|
||||
});
|
||||
}
|
||||
});
|
||||
storageService.removeCleanAndScanAddresses(function() {});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue