From 7d691aa409af3636ad795491b8b817d9eb7a980d Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Wed, 31 May 2023 21:16:14 +0530 Subject: [PATCH] fix(desktop): Fixed issue where local backup location would default to "[object Promise]" --- packages/services/src/Domain/Backups/BackupService.ts | 2 +- packages/web/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/services/src/Domain/Backups/BackupService.ts b/packages/services/src/Domain/Backups/BackupService.ts index ccf5d1c81..48a0c2296 100644 --- a/packages/services/src/Domain/Backups/BackupService.ts +++ b/packages/services/src/Domain/Backups/BackupService.ts @@ -147,7 +147,7 @@ export class FilesBackupService extends AbstractService implements BackupService private async automaticallyEnableTextBackupsIfPreferenceNotSet(): Promise { 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) diff --git a/packages/web/package.json b/packages/web/package.json index a1d9b457a..83fadb16a 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -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"