diff --git a/src/repos/UserRepo.ts b/src/repos/UserRepo.ts index f0ddaec..a12fe4e 100644 --- a/src/repos/UserRepo.ts +++ b/src/repos/UserRepo.ts @@ -263,7 +263,7 @@ const unbookmarkArticle = async (uuid: string, articleID: string): Promise if (articleIndex === -1) return user; - user.followedOrganizations.splice(articleIndex, 1); + user.bookmarkedArticles.splice(articleIndex, 1); return user.save(); } return user; @@ -280,7 +280,7 @@ const unbookmarkMagazine = async (uuid: string, magazineID: string): Promise => if (flyerIndex === -1) return user; - user.followedOrganizations.splice(flyerIndex, 1); + user.bookmarkedFlyers.splice(flyerIndex, 1); return user.save(); } return user;