Skip to content

Commit

Permalink
fix(*): update client side saving of articles
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed May 20, 2024
1 parent a151c80 commit 8541bee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ async function updateProfile(req, res) {
const existingSavedArticle = originalUser.savedArticles.filter(
(article) => article !== req.params.id
);
console.log(existingSavedArticle.length);
console.log(existingSavedArticle);
if (existingSavedArticle.length == 1) {
const removeSavedArticles = originalUser.savedArticles.filter(
(article) => article == req.params.id
Expand Down

0 comments on commit 8541bee

Please sign in to comment.