Skip to content

Commit

Permalink
Merge pull request #217 from TeamPiickle/sprint/4th
Browse files Browse the repository at this point in the history
Sprint/4th
  • Loading branch information
DongLee99 authored Nov 20, 2023
2 parents 5ded19b + 8a303ea commit 8b171f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/services/cardService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = (
Expand Down

0 comments on commit 8b171f3

Please sign in to comment.