filter by publisher_id rather than certificateId in getClaimIdAndServeAsset
This commit is contained in:
parent
8e5cb3b3d4
commit
0753f5a58e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue