mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-12 10:34:30 +00:00
update-confim-hash sql query is no longer needed because now confirm hash
will be updated by save-tx-result! (and also trying to make right some whitespace wrongs)
This commit is contained in:
parent
3763fa136a
commit
989039352d
@ -369,14 +369,6 @@ AND u.id = r.user_id
|
||||
AND i.payout_receipt IS NULL
|
||||
AND i.payout_hash IS NOT NULL;
|
||||
|
||||
|
||||
-- :name update-confirm-hash :! :n
|
||||
-- :doc updates issue with confirmation hash
|
||||
UPDATE issues
|
||||
SET confirm_hash = :confirm_hash,
|
||||
updated = timezone('utc'::text, now())
|
||||
WHERE issue_id = :issue_id;
|
||||
|
||||
-- :name update-winner-login :! :n
|
||||
UPDATE issues
|
||||
SET winner_login = :winner_login
|
||||
@ -436,6 +428,7 @@ UPDATE issues
|
||||
SET is_open = :is_open
|
||||
WHERE issue_id = :issue_id;
|
||||
|
||||
|
||||
-- :name issue-exists :1
|
||||
-- :doc returns true if given issue exists
|
||||
SELECT exists(SELECT 1
|
||||
@ -470,6 +463,8 @@ WHERE r.repo_id = i.repo_id
|
||||
AND r.user_id = u.id
|
||||
AND i.issue_id = :issue-id
|
||||
|
||||
|
||||
|
||||
-- :name open-bounties :? :*
|
||||
-- :doc all open bounty issues
|
||||
SELECT
|
||||
|
Loading…
x
Reference in New Issue
Block a user