mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
Refactor/db (#945)
* fix(db): rebuild-page-blocks-children * refactor(db): template-exists? * refactor(db): sub-key-value * refactor(db): get-pages-with-modified-at * style(page): fix style
This commit is contained in:
@@ -336,6 +336,15 @@
|
||||
{:key [:kv key]})
|
||||
(remove-key! repo-url key)))
|
||||
|
||||
(defn sub-key-value
|
||||
([key]
|
||||
(sub-key-value (state/get-current-repo) key))
|
||||
([repo-url key]
|
||||
(when (conn/get-conn repo-url)
|
||||
(-> (q repo-url [:kv key] {} key key)
|
||||
react
|
||||
key))))
|
||||
|
||||
(defn set-file-content!
|
||||
[repo path content]
|
||||
(when (and repo path)
|
||||
|
||||
Reference in New Issue
Block a user