diff --git a/src/clj/commiteth/routes/qrcodes.clj b/src/clj/commiteth/routes/qrcodes.clj index 132d44b..cb45039 100644 --- a/src/clj/commiteth/routes/qrcodes.clj +++ b/src/clj/commiteth/routes/qrcodes.clj @@ -13,18 +13,17 @@ (GET "/:owner/:repo/bounty/:issue{[0-9]{1,9}}/:hash/qr.png" [owner repo issue hash] (log/debug "qr PNG GET" owner repo issue hash) (if-let [{address :contract_address - repo :repo - issue-id :issue_id - balance :balance} - (bounties/get-bounty owner - repo - (Integer/parseInt issue))] + repo :repo + issue-id :issue_id + balance :balance} + (bounties/get-bounty owner + repo + (Integer/parseInt issue))] (do (log/debug "address:" address) (log/debug owner repo issue balance) (log/debug hash (github/github-comment-hash owner repo issue balance)) - (if (and address - (= hash (github/github-comment-hash owner repo issue balance))) + (if address (if-let [{png-data :png_data} (comment-images/get-image-data issue-id hash)]