fix for the full channel id scenario

This commit is contained in:
bill bittner 2017-08-22 19:14:31 -07:00
parent 00045eb696
commit ed9e7ffefd

View file

@ -41,7 +41,7 @@ const db = require('../models');
function getLongChannelId (channelName, channelId) {
if (channelId && (channelId.length === 40)) { // full channel id
return channelId;
return new Promise((resolve, reject) => resolve(channelId));
} else if (channelId && channelId.length < 40) { // short channel id
return getLongChannelIdFromShortChannelId(channelName, channelId);
} else {