From 9baaecc182460130aa44911e4c6265ed5471753a Mon Sep 17 00:00:00 2001 From: Ayush Gaud Date: Thu, 16 Nov 2023 01:55:02 +0900 Subject: [PATCH] add more logs --- src/wrike_ist/wrike.cljs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/wrike_ist/wrike.cljs b/src/wrike_ist/wrike.cljs index a333eda..d6c8c33 100644 --- a/src/wrike_ist/wrike.cljs +++ b/src/wrike_ist/wrike.cljs @@ -131,19 +131,18 @@ :plainText false})] (http/post uri {:headers (headers) :body (js/JSON.stringify params)})))) - (.then #(.log js/console (str "link-pr: PR link sent to task"))) + (.then + (fn [_] + (.log js/console (str "link-pr: PR link sent to task")) + (js/Promise.resolve))) (.catch #(if (= % :present) (.log js/console (str "link-pr: PR link already in comments")) - (js/Promise.resolve %))))))) + (js/Promise.reject %))))))) (.then (fn [_] - (js/Promise.all [check-valid-task-promise])) - (.catch #(js/Promise.reject %)))))) - - - - + (js/Promise.all [check-valid-task-promise]))) + (.catch #(js/Promise.reject %))))) (defn folder-statuses [folder-id]