diff --git a/rair-node/bin/api/contracts/contracts.Service.js b/rair-node/bin/api/contracts/contracts.Service.js index 9367bf883..b235779fe 100644 --- a/rair-node/bin/api/contracts/contracts.Service.js +++ b/rair-node/bin/api/contracts/contracts.Service.js @@ -342,7 +342,7 @@ module.exports = { blockchain: { $in: foundBlockchain.map((chain) => chain.hash) }, }, }); - if (foundBlockchain.length === 0 && blockchain.length >= 1) { + if (foundBlockchain.length === 0 && blockchainArr.length >= 1) { return next(new AppError('Invalid blockchain.', 404)); }