From 3763fa136adede83e31471ab0127e1d44d1f8356 Mon Sep 17 00:00:00 2001 From: Rob Culliton Date: Sat, 5 May 2018 09:08:18 -0400 Subject: [PATCH] get-issue-by-contract-address is no longer needed --- resources/sql/queries.sql | 6 ------ src/clj/commiteth/db/issues.clj | 5 ----- 2 files changed, 11 deletions(-) diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 196a074..cba906f 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -449,12 +449,6 @@ FROM issues WHERE repo_id = :repo_id AND issue_number = :issue_number; --- :name get-issue-by-contract-address :? :1 --- :doc get issue from DB by contract_address -SELECT issue_id, contract_address, transaction_hash -FROM issues -WHERE contract_address = :contract_address; - -- :name get-issue-by-id :? :1 -- :doc get issue from DB by issue-id SELECT diff --git a/src/clj/commiteth/db/issues.clj b/src/clj/commiteth/db/issues.clj index fa26f5a..6c705ad 100644 --- a/src/clj/commiteth/db/issues.clj +++ b/src/clj/commiteth/db/issues.clj @@ -110,11 +110,6 @@ (db/get-issue con-db {:repo_id repo-id :issue_number issue-number}))) -(defn get-issue-by-contract-address - [contract-address] - (jdbc/with-db-connection [con-db *db*] - (db/get-issue-by-contract-address con-db {:contract_address contract-address}))) - (defn get-issue-by-id [issue-id] (jdbc/with-db-connection [con-db *db*]