fix: disable namespace for db based graphs

pull/11196/head
Tienson Qin 2024-04-07 17:29:21 +08:00
parent 0b49d09fb1
commit dab2a6e563
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@
(defn db-based-graph?
"Whether the current graph is db-only"
[db]
(= "db" (:db/type (d/entity db :logseq.kv.db/type))))
(= "db" (:db/type (d/entity db :logseq.kv/db-type))))
;; File based fns
(defn get-namespace-pages

View File

@ -36,7 +36,7 @@
(defn kv
"Creates a key-value pair tx with the key under the :db/ident namespace :logseq.kv.
For example, the :db/type key is stored under an entity with ident :logseq.kv.db/type"
For example, the :db/type key is stored under an entity with ident :logseq.kv/db-type"
[key value]
{:db/ident (keyword "logseq.kv" (str (namespace key) "-" (name key)))
key value})