mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
enhance: trigger sync after creating new remote graph
This commit is contained in:
@@ -460,8 +460,8 @@
|
||||
(p/do
|
||||
(state/set-state! :rtc/uploading? true)
|
||||
(rtc-handler/<rtc-create-graph! repo)
|
||||
(rtc-flows/trigger-rtc-start repo)
|
||||
(rtc-handler/<get-remote-graphs))
|
||||
(rtc-handler/<get-remote-graphs)
|
||||
(rtc-flows/trigger-rtc-start repo))
|
||||
(p/catch (fn [error]
|
||||
(log/error :create-db-failed error)))
|
||||
(p/finally (fn []
|
||||
|
||||
@@ -411,4 +411,5 @@
|
||||
(throw (ex-info "graph id doesn't exist when uploading to server" {:repo repo})))
|
||||
(p/do!
|
||||
(state/<invoke-db-worker :thread-api/db-sync-upload-graph repo)
|
||||
(<get-remote-graphs)
|
||||
(<rtc-start! repo))))
|
||||
|
||||
Reference in New Issue
Block a user