update-execute-posted is no longer needed

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

View File

@ -73,6 +73,7 @@ FROM repositories
WHERE owner = :owner
AND repo = :repo;
-- :name create-repository! :<! :1
-- :doc creates repository if not exists
INSERT INTO repositories (repo_id, user_id, owner, repo, state, owner_avatar_url)
@ -212,6 +213,7 @@ SET
DELETE from pull_requests
WHERE pr_id = :pr_id;
-- Bounties ------------------------------------------------------------------------
@ -434,12 +436,6 @@ UPDATE issues
SET is_open = :is_open
WHERE issue_id = :issue_id;
-- :name update-execute-posted :! :n
-- :doc updates issue's execute_posted status
UPDATE issues
SET execute_posted = :execute_posted
WHERE issue_id = :issue_id;
-- :name issue-exists :1
-- :doc returns true if given issue exists
SELECT exists(SELECT 1

View File

@ -95,12 +95,6 @@
(db/update-issue-open con-db {:issue_id issue-id
:is_open is-open})))
(defn update-execute-posted
[issue-id execute_posted]
(jdbc/with-db-connection [con-db *db*]
(db/update-execute-posted con-db {:issue_id issue-id
:execute_posted execute_posted})))
(defn is-bounty-issue?
[issue-id]
(let [res (jdbc/with-db-connection [con-db *db*]