Fix confirmed-payouts query

Fixes this use case:
- two competing claims
- one merged and signed-off
-> GH paid comment shows wrong username in
This commit is contained in:
Teemu Patja 2017-11-07 18:16:38 +02:00
parent 8e4e27ffbe
commit 39d661feff
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 1 additions and 0 deletions

View File

@ -315,6 +315,7 @@ WHERE
p.issue_id = i.issue_id p.issue_id = i.issue_id
AND p.repo_id = i.repo_id AND p.repo_id = i.repo_id
AND r.repo_id = i.repo_id AND r.repo_id = i.repo_id
AND p.state = 1
AND u.id = p.user_id AND u.id = p.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;