|
@@ -7,7 +7,7 @@
|
|
|
(defn append
|
|
(defn append
|
|
|
[{{:keys [api-server-token args]} :opts}]
|
|
[{{:keys [api-server-token args]} :opts}]
|
|
|
(let [text (string/join " " args)]
|
|
(let [text (string/join " " args)]
|
|
|
- (-> (p/let [resp (cli-util/api-fetch api-server-token "logseq.app.append_block_in_page" [text nil nil])]
|
|
|
|
|
|
|
+ (-> (p/let [resp (cli-util/api-fetch api-server-token "logseq.app.append_block_in_page" [text])]
|
|
|
(if (= 200 (.-status resp))
|
|
(if (= 200 (.-status resp))
|
|
|
(println "Success!")
|
|
(println "Success!")
|
|
|
(cli-util/api-handle-error-response resp)))
|
|
(cli-util/api-handle-error-response resp)))
|