Fix balance update criteria
Include issue.is_open status when considering a bounty open. Fixes: #151
This commit is contained in:
parent
62f955683c
commit
397d74e670
|
@ -493,7 +493,8 @@ SELECT
|
||||||
FROM issues i, repositories r
|
FROM issues i, repositories r
|
||||||
WHERE r.repo_id = i.repo_id
|
WHERE r.repo_id = i.repo_id
|
||||||
AND contract_address IS NOT NULL
|
AND contract_address IS NOT NULL
|
||||||
AND i.confirm_hash IS NULL;
|
AND i.confirm_hash IS NULL
|
||||||
|
AND i.is_open = true;
|
||||||
|
|
||||||
-- :name get-bounty :? :1
|
-- :name get-bounty :? :1
|
||||||
-- :doc details for a bounty issue given owner, repo and issue nunber
|
-- :doc details for a bounty issue given owner, repo and issue nunber
|
||||||
|
|
Loading…
Reference in New Issue