fixed blocked check on api
This commit is contained in:
parent
63b9f27d33
commit
bf30c9f8a0
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ const claimLongId = ({ ip, originalUrl, body, params }, res) => {
|
|||
getClaimId(channelName, channelClaimId, claimName, claimId)
|
||||
.then(fullClaimId => {
|
||||
claimId = fullClaimId;
|
||||
return db.Blocked.isNotBlocked(fullClaimId, claimName);
|
||||
return db.Claim.getOutpoint(claimName, fullClaimId);
|
||||
})
|
||||
.then(outpoint => {
|
||||
return db.Blocked.isNotBlocked(outpoint);
|
||||
})
|
||||
.then(() => {
|
||||
res.status(200).json({success: true, data: claimId});
|
||||
|
|
Loading…
Reference in a new issue