fix: set current repo after importing db

This commit is contained in:
Tienson Qin
2023-12-11 23:08:07 +08:00
parent 4860d23aa4
commit 61b2681c2a

View File

@@ -226,6 +226,7 @@
(let [graph (str config/db-version-prefix bare-graph-name)]
(-> (do
(persist-db/<import-db graph buffer)
(state/set-current-repo! graph)
(repo-handler/restore-and-setup-repo! graph))
(p/then
(fn [_result]