Skip to content

Commit

Permalink
fix the issue when some documents from db are nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
lenchvolodymyr committed Feb 28, 2022
1 parent caffffe commit 0f744bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reverse_engineering/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ async function getDocuments(container, maxItemCount) {
console.log(err);
logger.log('error', err);
}
return documents;
return documents.filter(Boolean);
}

async function getDocumentsAmount(container) {
Expand Down

0 comments on commit 0f744bc

Please sign in to comment.