fix: don't persist file/path|last-modified-at for db graphs

This commit is contained in:
Tienson Qin
2024-11-12 15:16:14 +08:00
parent a0bfc25522
commit ccbcc76e17

View File

@@ -73,7 +73,7 @@
(defn set-file-last-modified-at!
"Refresh file timestamps to DB"
[repo path last-modified-at]
(when (and repo path last-modified-at)
(when (and repo (not (config/db-based-graph? repo)) path last-modified-at)
(transact! repo
[{:file/path path
:file/last-modified-at last-modified-at}] {})))