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:
llcc
2022-06-14 18:22:40 +08:00
committed by GitHub
parent 3e0c4ba3d8
commit 7c8ae98911
9 changed files with 138 additions and 37 deletions

View File

@@ -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 {}))