fix metadata for claims with canonical collision

This commit is contained in:
Sean Yesmunt 2020-07-28 12:36:47 -04:00
parent c9c98501af
commit 61d55604a4

View file

@ -38,10 +38,10 @@ module.exports.getClaim = async function getClaim(claimName, claimId, channelNam
if (claimId) {
sql += ' AND claim.claim_id LIKE ?';
params.push(claimId + '%');
} else {
sql += ' AND claim.bid_state = "controlling"';
}
sql += ' AND claim.bid_state in ("controlling", "active")';
if (claimName[0] !== '@' && channelName) {
sql += ' AND channel_claim.name = ?';
params.push('@' + channelName);