|
@@ -45,8 +45,9 @@
|
|
|
(defn update-block-content
|
|
(defn update-block-content
|
|
|
"Replace `[[internal-id]]` with `[[page name]]`"
|
|
"Replace `[[internal-id]]` with `[[page name]]`"
|
|
|
[item eid]
|
|
[item eid]
|
|
|
- (let [db (conn/get-db)]
|
|
|
|
|
- (db-content/update-block-content db item eid)))
|
|
|
|
|
|
|
+ (if-let [db (conn/get-db)]
|
|
|
|
|
+ (db-content/update-block-content db item eid)
|
|
|
|
|
+ item))
|
|
|
|
|
|
|
|
(defn pull
|
|
(defn pull
|
|
|
([eid]
|
|
([eid]
|