From a610576a24854cebfe7773b76256342927f95a9e Mon Sep 17 00:00:00 2001 From: johackim Date: Wed, 7 Dec 2022 14:23:13 +0100 Subject: [PATCH] refactor: add await --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 5dc942a..3b9778d 100644 --- a/src/main.js +++ b/src/main.js @@ -86,6 +86,6 @@ export default class BookPlugin extends Plugin { } this.settings = { ...DEFAULT_SETTINGS, ...this.settings, today }; - this.saveData(this.settings); + await this.saveData(this.settings); } }