fix: correctly create decrypted and desktop backups

This commit is contained in:
Baptiste Grob
2021-01-20 14:37:31 +01:00
parent 5c60c3fba9
commit 923d14b787
2 changed files with 6 additions and 4 deletions

View File

@@ -189,7 +189,9 @@ export class DesktopManager extends ApplicationService {
}
async desktop_requestBackupFile() {
const data = this.application!.createBackupFile(EncryptionIntent.FileEncrypted);
const data = await this.application!.createBackupFile(
EncryptionIntent.FileEncrypted
);
if (data) {
return JSON.stringify(data, null, 2);
}