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*]