fix(desktop): Fixed issue where local backup location would default to "[object Promise]"

This commit is contained in:
Aman Harwara
2023-05-31 21:16:14 +05:30
parent 9141da0832
commit 7d691aa409
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ export class FilesBackupService extends AbstractService implements BackupService
private async automaticallyEnableTextBackupsIfPreferenceNotSet(): Promise<void> {
if (this.storage.getValue(StorageKey.TextBackupsEnabled) == undefined) {
this.storage.setValue(StorageKey.TextBackupsEnabled, true)
const location = `${await this.device.getUserDocumentsDirectory()}/${this.prependWorkspacePathForPath(
const location = `${await this.device.getUserDocumentsDirectory()}/${await this.prependWorkspacePathForPath(
TextBackupsDirectoryName,
)}`
this.storage.setValue(StorageKey.TextBackupsLocation, location)

View File

@@ -3,7 +3,7 @@
"version": "3.160.18",
"license": "AGPL-3.0-or-later",
"main": "dist/app.js",
"author": "Standard Notes",
"author": "Standard Notes.",
"private": true,
"files": [
"dist"