From dbe77718c8538e32fc7bb63ef4e3983468545b92 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Tue, 21 Feb 2023 09:12:14 +0900 Subject: [PATCH] Urgent: - The modified document will be reflected in the storage now. --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 3269d20..02d8615 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1399,7 +1399,7 @@ export default class ObsidianLiveSyncPlugin extends Plugin { } return; } - const localMtime = ~~(file?.stat?.mtime || 0 / 1000); + const localMtime = ~~((file?.stat?.mtime || 0) / 1000); const docMtime = ~~(docEntry.mtime / 1000); const doc = await this.localDatabase.getDBEntry(pathSrc, { rev: docEntry._rev });