update-execute-posted is no longer needed
This commit is contained in:
parent
9137d68d04
commit
13fcf1799f
|
@ -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
|
||||
|
|
|
@ -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*]
|
||||
|
|
Loading…
Reference in New Issue