fix metadata for claims with canonical collision
This commit is contained in:
parent
c9c98501af
commit
61d55604a4
1 changed files with 2 additions and 2 deletions
|
@ -38,10 +38,10 @@ module.exports.getClaim = async function getClaim(claimName, claimId, channelNam
|
||||||
if (claimId) {
|
if (claimId) {
|
||||||
sql += ' AND claim.claim_id LIKE ?';
|
sql += ' AND claim.claim_id LIKE ?';
|
||||||
params.push(claimId + '%');
|
params.push(claimId + '%');
|
||||||
} else {
|
|
||||||
sql += ' AND claim.bid_state = "controlling"';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sql += ' AND claim.bid_state in ("controlling", "active")';
|
||||||
|
|
||||||
if (claimName[0] !== '@' && channelName) {
|
if (claimName[0] !== '@' && channelName) {
|
||||||
sql += ' AND channel_claim.name = ?';
|
sql += ' AND channel_claim.name = ?';
|
||||||
params.push('@' + channelName);
|
params.push('@' + channelName);
|
||||||
|
|
Loading…
Reference in a new issue