get-issue-by-contract-address is no longer needed

This commit is contained in:
Rob Culliton 2018-05-05 09:08:18 -04:00
parent 13fcf1799f
commit 3763fa136a
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94
2 changed files with 0 additions and 11 deletions

View File

@ -449,12 +449,6 @@ FROM issues
WHERE repo_id = :repo_id WHERE repo_id = :repo_id
AND issue_number = :issue_number; 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 -- :name get-issue-by-id :? :1
-- :doc get issue from DB by issue-id -- :doc get issue from DB by issue-id
SELECT SELECT

View File

@ -110,11 +110,6 @@
(db/get-issue con-db {:repo_id repo-id (db/get-issue con-db {:repo_id repo-id
:issue_number issue-number}))) :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 (defn get-issue-by-id
[issue-id] [issue-id]
(jdbc/with-db-connection [con-db *db*] (jdbc/with-db-connection [con-db *db*]