Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
norima committed Oct 24, 2023
1 parent a4e54d6 commit 6c85e84
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/authStrategies/RemoteAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ class RemoteAuth extends BaseAuthStrategy {

async unCompressSession(compressedSessionPath) {
await new Promise((resolve, reject) => {
var zip = new AdmZip(compressedSessionPath);
zip.extractAllToAsync(this.userDataDir, false, false, (err) => {
if (err) {
reject(err);
} else {
resolve();
}
});
var zip = new AdmZip(compressedSessionPath);
zip.extractAllToAsync(this.userDataDir, true, false, (err) => {
if (err) {
reject(err);
} else {
resolve();
}
});
});
await fs.promises.unlink(compressedSessionPath);
}
Expand Down

0 comments on commit 6c85e84

Please sign in to comment.