Revert "fix metadata for claims with canonical collision"

This reverts commit 61d55604a4.
This commit is contained in:
Sean Yesmunt 2020-07-28 15:14:27 -04:00
parent 26f460d2ae
commit 43a9393dca

View file

@ -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);