enhance: separate properties using ;

pull/10544/head
Tienson Qin 2023-11-22 22:52:59 +08:00
parent 0eaba12b4a
commit 44617ab8ca
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@
(when (or (seq blocks-to-add) (seq blocks-to-remove))
(transact-blocks! repo
{:blocks-to-remove-set (set (map :db/id blocks-to-remove))
:blocks-to-add (map search-db/block->index blocks-to-add)}))))
:blocks-to-add (remove nil? (map search-db/block->index blocks-to-add))}))))
(defn rebuild-indices!
([]

View File

@ -51,7 +51,7 @@
": "
value)))))
(remove nil?)
(string/join "\n")))
(string/join "; ")))
(defn block->index
"Convert a block to the index for searching"