filter by publisher_id rather than certificateId in getClaimIdAndServeAsset

This commit is contained in:
Travis Eden 2018-10-18 15:24:00 -04:00
parent 8e5cb3b3d4
commit 0753f5a58e

View file

@ -37,7 +37,7 @@ const getClaimIdAndServeAsset = (channelName, channelClaimId, claimName, claimId
return claim; return claim;
}) })
.then(claim => { .then(claim => {
if (serveOnlyApproved && !isApprovedChannel({ longId: claim.dataValues.certificateId }, approvedChannels)) { if (serveOnlyApproved && !isApprovedChannel({ longId: claim.dataValues.publisher_id }, approvedChannels)) {
throw new Error(CONTENT_UNAVAILABLE); throw new Error(CONTENT_UNAVAILABLE);
} }
logger.debug('Outpoint:', claim.dataValues.outpoint); logger.debug('Outpoint:', claim.dataValues.outpoint);