Skip to content

Commit

Permalink
commented out some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
winterrrrrff committed Dec 28, 2022
1 parent d7a4092 commit 6cf169a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/articlesController.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const feedArticles = asyncHandler(async (req, res) => {
.skip(Number(offset))
.exec();

console.log(`articles: ${filteredArticles}`);
// console.log(`articles: ${filteredArticles}`);
const articleCount = await Article.count({author: {$in: loginUser.followingUsers}});

return res.status(200).json({
Expand Down
2 changes: 1 addition & 1 deletion controllers/commentsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const getCommentsFromArticle = asyncHandler(async (req, res) => {
const commentObj = await Comment.findById(commentId).exec();
// console.log(commentObj);
const temp = await commentObj.toCommentResponse(false);
console.log(temp);
// console.log(temp);
return temp;
}))
})
Expand Down
2 changes: 1 addition & 1 deletion models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const userSchema = new mongoose.Schema({
},
image: {
type: String,
default: null
default: "https://static.productionready.io/images/smiley-cyrus.jpg"
},
favouriteArticles: [{
type: mongoose.Schema.Types.ObjectId,
Expand Down

0 comments on commit 6cf169a

Please sign in to comment.