fix: linked && unlinked references

pull/1664/head
Tienson Qin 2021-04-15 10:08:40 +08:00
parent d8562c609a
commit d0abccde62
1 changed files with 4 additions and 3 deletions

View File

@ -980,7 +980,7 @@
db-utils/seq-flatten
(remove (fn [block]
(= page-id (:db/id (:block/page block)))))
(remove-children!)
;; (remove-children!)
(with-children-refs repo)
sort-blocks
db-utils/group-by-page
@ -1061,8 +1061,9 @@
pages))))))
sort-blocks
db-utils/group-by-page
(map (fn [[k blocks]]
[k (remove-children! blocks)])))))))
;; (map (fn [[k blocks]]
;; [k (remove-children! blocks)]))
)))))
(defn get-block-referenced-blocks
[block-uuid]