Explorar el Código

refactor: rename fn params in `frontend.db.model`

situ2001 hace 2 años
padre
commit
e5b123de5d
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/main/frontend/db/model.cljs

+ 4 - 4
src/main/frontend/db/model.cljs

@@ -906,14 +906,14 @@ independent of format as format specific heading characters are stripped"
             (= "" (:block/content (db-utils/pull (:e (first datoms))))))))))
 
 (defn parents-collapsed?
-  [repo block-id]
-  (when-let [block (:block/parent (get-block-parents-v2 repo block-id))]
+  [repo block-uuid]
+  (when-let [block (:block/parent (get-block-parents-v2 repo block-uuid))]
     (->> (tree-seq map? (fn [x] [(:block/parent x)]) block)
          (some util/collapsed?))))
 
 (defn get-block-page
-  [repo block-id]
-  (when-let [block (db-utils/entity repo [:block/uuid block-id])]
+  [repo block-uuid]
+  (when-let [block (db-utils/entity repo [:block/uuid block-uuid])]
     (db-utils/entity repo (:db/id (:block/page block)))))
 
 (defn get-pages-by-name-partition