Skip to content

Commit

Permalink
Fix type confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsm412 committed Sep 6, 2024
1 parent ab61ee7 commit 073f61e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rair-node/bin/api/files/files.Service.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
const {
pageNum = '1',
itemsPerPage = '20',
blockchain = '',
blockchain = [],
category = [],
userAddress = '',
contractAddress = '',
Expand All @@ -49,7 +49,7 @@ module.exports = {
const blockchainFilter = {
display: { $ne: false },
};
if (blockchain?.length >= 1) {
if (blockchain.length) {
blockchainFilter.hash = { $in: [...blockchain] };
}
const foundBlockchain = await Blockchain.find(blockchainFilter);
Expand Down

0 comments on commit 073f61e

Please sign in to comment.