|
|
@@ -327,10 +327,10 @@
|
|
|
|
|
|
(get-block-and-children
|
|
|
[_this repo id-str children?]
|
|
|
- (assert (common-util/uuid-string? id-str))
|
|
|
- (when-let [conn (worker-state/get-datascript-conn repo)]
|
|
|
- (let [id (uuid id-str)]
|
|
|
- (ldb/write-transit-str (sqlite-common-db/get-block-and-children @conn id children?)))))
|
|
|
+ (when (common-util/uuid-string? id-str)
|
|
|
+ (when-let [conn (worker-state/get-datascript-conn repo)]
|
|
|
+ (let [id (uuid id-str)]
|
|
|
+ (ldb/write-transit-str (sqlite-common-db/get-block-and-children @conn id children?))))))
|
|
|
|
|
|
(get-block-refs
|
|
|
[_this repo id]
|