Skip to content

Commit

Permalink
Fix a bug that only one file will be processed
Browse files Browse the repository at this point in the history
  • Loading branch information
zeruniverse committed Aug 7, 2020
1 parent 9564254 commit 2e7e2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/common/recoveryBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class RecoveryBackend {
throw('invalid status for encrypted files');
let filePromises = [];
for (let id in filedata["data"]) {
var file = {"id": id};
var thisFilePromise = self.encryptionWrapper.decryptChar(filedata["data"][id][0])
let file = {"id": id};
let thisFilePromise = self.encryptionWrapper.decryptChar(filedata["data"][id][0])
.then(function(fname) {
file["name"] = fname;
return EncryptionWrapper.WgenerateKeyWithSalt(self.encryptionWrapper.secretkey, fname);
Expand Down

0 comments on commit 2e7e2eb

Please sign in to comment.