Fix syntax in SQL
This commit is contained in:
parent
9a5d0954df
commit
01ee79b022
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ module.exports.getClaim = async function getClaim(claimName, claimId, channelNam
|
|||
'FROM claim ' +
|
||||
'LEFT JOIN claim channel_claim on claim.publisher_id = channel_claim.claim_id ' +
|
||||
'LEFT JOIN claim as reposted_claim on reposted_claim.claim_id = claim.claim_reference ' +
|
||||
'AND (reposted_claim.bid_state in ("controlling", "active", "accepted", "spent") ' +
|
||||
'AND (reposted_claim.bid_state in ("controlling", "active", "accepted", "spent")) ' +
|
||||
'LEFT JOIN claim as repost_channel on repost_channel.claim_id = reposted_claim.publisher_id ' +
|
||||
'WHERE claim.name = ?';
|
||||
|
||||
|
|
Loading…
Reference in a new issue