tested conflicting channel ids and updated logging

This commit is contained in:
bill bittner 2017-08-23 14:40:35 -07:00
parent b2eed76914
commit e5a0dc8eb6
3 changed files with 12 additions and 10 deletions

View file

@ -172,7 +172,7 @@ function getShortChannelId (channelName, longChannelId) {
}); });
} }
// return the short Id // return the short Id
logger.debug('short claim id ===', shortId); logger.debug('short channel id ===', shortId);
return resolve(shortId); return resolve(shortId);
} }
}) })
@ -334,12 +334,14 @@ module.exports = {
return getAllChannelClaims(longChannelId); return getAllChannelClaims(longChannelId);
}) })
.then(allChannelClaims => { .then(allChannelClaims => {
allChannelClaims.forEach(element => { if (allChannelClaims) {
element['channelName'] = channelName; allChannelClaims.forEach(element => {
element['longChannelId'] = longChannelId; element['channelName'] = channelName;
element['shortChannelId'] = shortChannelId; element['longChannelId'] = longChannelId;
element['fileExtension'] = element.contentType.substring(element.contentType.lastIndexOf('/') + 1); element['shortChannelId'] = shortChannelId;
}); element['fileExtension'] = element.contentType.substring(element.contentType.lastIndexOf('/') + 1);
});
}
return resolve(allChannelClaims); return resolve(allChannelClaims);
}) })
.catch(error => { .catch(error => {

View file

@ -2,7 +2,7 @@
{{> topBar}} {{> topBar}}
<div> <div>
<h3>No Claims</h3> <h3>No Claims</h3>
<p>There are no free, public assets on this channel.</p> <p>There are no free assets on this channel.</p>
<p><i>If you think this message is an error, contact us in Slack!</i></p> <p><i>If you think this message is an error, contact us in the <a href="https://lbry.slack.com/" target="_blank">LBRY slack!</a></i></p>
</div> </div>
</div> </div>

View file

@ -2,7 +2,7 @@
{{> topBar}} {{> topBar}}
<div> <div>
<h3>No Claims</h3> <h3>No Claims</h3>
<p>There are no free, public images at that claim. You should publish one at <a href="/">spee.ch</a>.</p> <p>There are no free assets at that claim. You should publish one at <a href="/">spee.ch</a>.</p>
<p>NOTE: it is possible your claim was published, but it is still being processed by the blockchain</p> <p>NOTE: it is possible your claim was published, but it is still being processed by the blockchain</p>
</div> </div>
</div> </div>