Fix utils/getClaimId when claimId is empty
This commit is contained in:
parent
86a693b4f4
commit
d4f1adb335
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ const chainquery = require('chainquery');
|
|||
const getClaimIdByChannel = async (channelName, channelClaimId, claimName) => {
|
||||
logger.debug(`getClaimIdByChannel(${channelName}, ${channelClaimId}, ${claimName})`);
|
||||
|
||||
let channelId = await chainquery.claim.queries.getLongClaimIdFromShortClaimId(channelName, channelClaimId);
|
||||
let channelId = await chainquery.claim.queries.getLongClaimId(channelName, channelClaimId);
|
||||
|
||||
if(channelId === null) {
|
||||
channelId = await db.Certificate.getLongChannelId(channelName, channelClaimId);
|
||||
|
|
Loading…
Reference in a new issue