Skip to content

Commit

Permalink
removed some console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
guillecro committed Oct 19, 2023
1 parent cc2cef4 commit 8a51a40
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions db-api/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,6 @@ exports.isPopular = async function isPopular (documentId) {
const countCommentsFundation = await Comment.count({ document: document._id, field: 'fundation', author: { $ne: documentAuthorId } })
// count contributions but not from the author
const countContributionsArticles = await Comment.count({ document: document._id, field: 'articles', author: { $ne: documentAuthorId } })
console.dir(document)
console.dir(document.apoyosCount)
console.dir(countCommentsFundation)
console.dir(countContributionsArticles)
// For a document to be popular, it needs to have:
// 30 apoyos
// 10 comments in fundation
Expand Down

0 comments on commit 8a51a40

Please sign in to comment.