mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
fix save issues after iOS app re-installation (#5697)
* fix save issues after iOS app re-installation * fix: ios installation id updates when switching graphs * fix duplicated file-paths in db Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
This commit is contained in:
@@ -144,6 +144,12 @@
|
||||
(when-let [conn (get-db repo false)]
|
||||
(repo-listen-to-tx! repo conn)))
|
||||
|
||||
(defn relisten-and-persist!
|
||||
[repo]
|
||||
(when-let [conn (get-db repo false)]
|
||||
(d/unlisten! conn :persistence)
|
||||
(listen-and-persist! repo)))
|
||||
|
||||
(defn start-db-conn!
|
||||
([repo]
|
||||
(start-db-conn! repo {}))
|
||||
|
||||
Reference in New Issue
Block a user