Store vault data on the user once we have it

Useful for further sharing process and progress calculation
This commit is contained in:
Marcos Zuriaga 2016-09-28 22:16:15 +02:00
parent b45d5b3634
commit e4032f6a95

View file

@ -106,6 +106,7 @@ angular.module('passmanApp')
console.log(list);
for (var i = 0; i < list.length; i++){
ShareService.getVaultsByUser(list[i].userId).then(function(data){
list[i].vaults = data;
console.log(data);
var start = new Date().getTime() / 1000;;
ShareService.cypherRSAStringWithPublicKeyBulkAsync(data, key)