Fix vanity claim resolution
We have a CQ hack to include spent claims (CQ bug), but this broke vanity names.
This commit is contained in:
parent
a43f49cef2
commit
58fc61ac0f
1 changed files with 3 additions and 2 deletions
|
@ -38,9 +38,10 @@ module.exports.getClaim = async function getClaim(claimName, claimId, channelNam
|
|||
if (claimId) {
|
||||
sql += ' AND claim.claim_id LIKE ?';
|
||||
params.push(claimId + '%');
|
||||
}
|
||||
|
||||
sql += ' AND claim.bid_state in ("controlling", "active", "accepted", "spent")';
|
||||
} else {
|
||||
sql += ' AND claim.bid_state in ("controlling", "active", "accepted")';
|
||||
}
|
||||
|
||||
if (claimName[0] !== '@' && channelName) {
|
||||
sql += ' AND channel_claim.name = ?';
|
||||
|
|
Loading…
Reference in a new issue