Blocked timeout error #506

Merged
bones7242 merged 3 commits from blocked-timeout-error into master 2018-07-02 23:54:29 +02:00
Showing only changes of commit bf30c9f8a0 - Show all commits

View file

@ -22,7 +22,10 @@ const claimLongId = ({ ip, originalUrl, body, params }, res) => {
getClaimId(channelName, channelClaimId, claimName, claimId) getClaimId(channelName, channelClaimId, claimName, claimId)
.then(fullClaimId => { .then(fullClaimId => {
claimId = fullClaimId; claimId = fullClaimId;
return db.Blocked.isNotBlocked(fullClaimId, claimName); return db.Claim.getOutpoint(claimName, fullClaimId);
})
.then(outpoint => {
return db.Blocked.isNotBlocked(outpoint);
}) })
.then(() => { .then(() => {
res.status(200).json({success: true, data: claimId}); res.status(200).json({success: true, data: claimId});