From bf30c9f8a08d9ac2c9fcdd77c8d5bb37cc7463e6 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Mon, 2 Jul 2018 13:53:52 -0700 Subject: [PATCH] fixed blocked check on api --- server/controllers/api/claim/longId/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/controllers/api/claim/longId/index.js b/server/controllers/api/claim/longId/index.js index 0eb3668c..27f66b1c 100644 --- a/server/controllers/api/claim/longId/index.js +++ b/server/controllers/api/claim/longId/index.js @@ -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});