Fix bug in is-bounty-issue?, update docstring

This commit is contained in:
Teemu Patja 2017-09-13 11:20:11 +03:00
parent 6522265f7d
commit c17763bf2d
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
2 changed files with 5 additions and 2 deletions

View File

@ -358,7 +358,7 @@ WHERE issue_id = :issue_id;
-- :name issue-exists :1
-- :doc updates issue's open status
-- :doc returns true if given issue exists
SELECT exists(SELECT 1
FROM issues
WHERE issue_id = :issue_id);

View File

@ -92,4 +92,7 @@
[issue-id]
(let [res (jdbc/with-db-connection [con-db *db*]
(db/issue-exists con-db {:issue_id issue-id}))]
res))
(-> res
first
:exists
boolean)))