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_receipt IS NULL
|
||||||
AND i.payout_hash IS NOT 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
|
-- :name update-winner-login :! :n
|
||||||
UPDATE issues
|
UPDATE issues
|
||||||
SET winner_login = :winner_login
|
SET winner_login = :winner_login
|
||||||
@ -436,6 +428,7 @@ UPDATE issues
|
|||||||
SET is_open = :is_open
|
SET is_open = :is_open
|
||||||
WHERE issue_id = :issue_id;
|
WHERE issue_id = :issue_id;
|
||||||
|
|
||||||
|
|
||||||
-- :name issue-exists :1
|
-- :name issue-exists :1
|
||||||
-- :doc returns true if given issue exists
|
-- :doc returns true if given issue exists
|
||||||
SELECT exists(SELECT 1
|
SELECT exists(SELECT 1
|
||||||
@ -457,9 +450,9 @@ SELECT
|
|||||||
i.is_open AS is_open,
|
i.is_open AS is_open,
|
||||||
i.winner_login AS winner_login,
|
i.winner_login AS winner_login,
|
||||||
i.commit_sha AS commit_sha,
|
i.commit_sha AS commit_sha,
|
||||||
u.address AS owner_address,
|
u.address AS owner_address,
|
||||||
i.contract_address AS contract_address,
|
i.contract_address AS contract_address,
|
||||||
i.confirm_hash AS confirm_hash,
|
i.confirm_hash AS confirm_hash,
|
||||||
i.title AS title,
|
i.title AS title,
|
||||||
i.comment_id AS comment_id,
|
i.comment_id AS comment_id,
|
||||||
i.repo_id AS repo_id,
|
i.repo_id AS repo_id,
|
||||||
@ -470,6 +463,8 @@ WHERE r.repo_id = i.repo_id
|
|||||||
AND r.user_id = u.id
|
AND r.user_id = u.id
|
||||||
AND i.issue_id = :issue-id
|
AND i.issue_id = :issue-id
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- :name open-bounties :? :*
|
-- :name open-bounties :? :*
|
||||||
-- :doc all open bounty issues
|
-- :doc all open bounty issues
|
||||||
SELECT
|
SELECT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user