Fix syntax in SQL

This commit is contained in:
Thomas Zarebczan 2020-12-21 16:16:05 -05:00
parent 9a5d0954df
commit 01ee79b022
No known key found for this signature in database
GPG key ID: D505010BDB4364BC

View file

@ -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 = ?';