fix for the full channel id scenario
This commit is contained in:
parent
00045eb696
commit
ed9e7ffefd
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue