mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: don't record local txs for remote graph
This commit is contained in:
@@ -134,12 +134,13 @@
|
||||
(let [full-graph-name (string/lower-case (str config/db-version-prefix graph-name))]
|
||||
(some #(= (some-> (:url %) string/lower-case) full-graph-name) (state/get-repos))))
|
||||
|
||||
(defn- create-db [full-graph-name {:keys [file-graph-import?]}]
|
||||
(defn- create-db [full-graph-name {:keys [file-graph-import? remote-graph?]}]
|
||||
(->
|
||||
(p/let [config config/config-default-content
|
||||
_ (persist-db/<new full-graph-name
|
||||
(cond-> {:config config
|
||||
:graph-git-sha config/revision}
|
||||
:graph-git-sha config/revision
|
||||
:remote-graph? remote-graph?}
|
||||
file-graph-import? (assoc :import-type :file-graph)))
|
||||
_ (start-repo-db-if-not-exists! full-graph-name)
|
||||
_ (state/add-repo! {:url full-graph-name :root (config/get-local-dir full-graph-name)})
|
||||
|
||||
Reference in New Issue
Block a user