mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
Refactor: use last modified time to decide if file has been changed
Previously, we're using file content. Fixes LOG-3161
This commit is contained in:
@@ -86,8 +86,7 @@
|
||||
(when (and repo path last-modified-at)
|
||||
(transact! repo
|
||||
[{:file/path path
|
||||
:file/last-modified-at last-modified-at}]
|
||||
{:skip-refresh? true})))
|
||||
:file/last-modified-at last-modified-at}] {})))
|
||||
|
||||
(defn set-file-content!
|
||||
([repo path content]
|
||||
@@ -96,4 +95,4 @@
|
||||
(when (and repo path)
|
||||
(let [tx-data {:file/path path
|
||||
:file/content content}]
|
||||
(transact! repo [tx-data] (merge opts {:skip-refresh? true}))))))
|
||||
(transact! repo [tx-data] opts)))))
|
||||
|
||||
Reference in New Issue
Block a user