diff --git a/helpers/serveHelpers.js b/helpers/serveHelpers.js index cc7c43c3..b59fa343 100644 --- a/helpers/serveHelpers.js +++ b/helpers/serveHelpers.js @@ -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 {