From bbf96cc49736ed063efe0afb777d197d7cfb248f Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Fri, 18 May 2018 15:38:34 +0300 Subject: [PATCH] Rename bounty and activity fields --- resources/sql/queries.sql | 4 ++-- src/cljs/commiteth/bounties.cljs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 9e0fed7..dd6ca77 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -620,8 +620,8 @@ SELECT pr_id, issue_number, issue_id, - user_name, - user_avatar_url, + user_name as display_name, + user_avatar_url as avatar_url, balance_eth, tokens, value_usd, diff --git a/src/cljs/commiteth/bounties.cljs b/src/cljs/commiteth/bounties.cljs index cd6d596..9f4c9e4 100644 --- a/src/cljs/commiteth/bounties.cljs +++ b/src/cljs/commiteth/bounties.cljs @@ -45,7 +45,7 @@ (defn bounty-item [bounty] (let [open-bounty-claims (rf/subscribe [::subs/open-bounty-claims])] (fn [bounty] - (let [{avatar-url :repo_owner_avatar_url + (let [{avatar-url :repo-owner-avatar-url owner :repo-owner repo-name :repo-name issue-title :issue-title @@ -66,6 +66,7 @@ open-claims-click #(rf/dispatch [::handlers/open-bounty-claim issue-id]) close-claims-click #(rf/dispatch [::handlers/close-bounty-claim issue-id]) matches-current-issue? (some #{issue-id} @open-bounty-claims)] + (.warn js/console "avatar-url" avatar-url) [:div [:div.open-bounty-item.ph4 [:div.open-bounty-item-content