diff --git a/server/controllers/utils/getClaimId.js b/server/controllers/utils/getClaimId.js index 76ea1f47..0e304838 100644 --- a/server/controllers/utils/getClaimId.js +++ b/server/controllers/utils/getClaimId.js @@ -15,7 +15,7 @@ const getClaimIdByChannel = async (channelName, channelClaimId, claimName) => { let claimId = await chainquery.claim.queries.getClaimIdByLongChannelId(channelId, claimName); if(claimId === null) { - claimId = db.Claim.getClaimIdByLongChannelId(longChannelId, claimName); + claimId = db.Claim.getClaimIdByLongChannelId(channelId, claimName); } return claimId;