From efe6f9e27c4b1daa2ad38ebbbe36de583c50e44b Mon Sep 17 00:00:00 2001 From: Juan Miguel Sanchez Mola Date: Fri, 23 Aug 2024 08:49:34 -0400 Subject: [PATCH] Resolve warning --- rair-node/bin/api/contracts/contracts.Service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }