update-contract-address bugfix

This commit is contained in:
kagel 2016-09-20 00:43:32 +03:00
parent 0affe53a45
commit 561d852a38
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ WITH t AS (
UPDATE issues i UPDATE issues i
SET contract_address = :contract_address SET contract_address = :contract_address
FROM t FROM t
RETURNING t.issue_id, t.issue_number, t.title, t.transaction_hash, t.contract_address, t.login, t.repo, t.repo_id; WHERE i.issue_id = :issue_id
RETURNING t.issue_id, t.issue_number, t.title, t.transaction_hash, i.contract_address, t.login, t.repo, t.repo_id;
-- :name update-comment-id :! :n -- :name update-comment-id :! :n
-- :doc updates comment-id for a given issue -- :doc updates comment-id for a given issue