diff --git a/src/services/cardService.ts b/src/services/cardService.ts index e1d2cb5..abf092a 100644 --- a/src/services/cardService.ts +++ b/src/services/cardService.ts @@ -123,11 +123,6 @@ const findRecentlyUpdatedCard = async (userId?: Types.ObjectId) => { const findRecentlyBookmarkedCard = async (userId?: Types.ObjectId) => { const bookmarks: BookmarkDocument[] = await Bookmark.aggregate() - .group({ - _id: '$card', - card: { $first: '$card' }, - createdAt: { $first: '$createdAt' } - }) .sort({ createdAt: -1 }) .limit(20); const cards: CardDocument[] = (