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> { private async automaticallyEnableTextBackupsIfPreferenceNotSet(): Promise<void> {
if (this.storage.getValue(StorageKey.TextBackupsEnabled) == undefined) { if (this.storage.getValue(StorageKey.TextBackupsEnabled) == undefined) {
this.storage.setValue(StorageKey.TextBackupsEnabled, true) this.storage.setValue(StorageKey.TextBackupsEnabled, true)
const location = `${await this.device.getUserDocumentsDirectory()}/${this.prependWorkspacePathForPath( const location = `${await this.device.getUserDocumentsDirectory()}/${await this.prependWorkspacePathForPath(
TextBackupsDirectoryName, TextBackupsDirectoryName,
)}` )}`
this.storage.setValue(StorageKey.TextBackupsLocation, location) this.storage.setValue(StorageKey.TextBackupsLocation, location)

View File

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