Replaces for by lodash function

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-10 15:01:49 -03:00
parent 9d575ecb7c
commit 784757d4ec
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 2 additions and 3 deletions

View File

@ -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() {});
}
});