Skip to content

Commit

Permalink
Increase recently viewed doc count (#573)
Browse files Browse the repository at this point in the history
Update documents.go
  • Loading branch information
jeffdaley authored Jan 30, 2024
1 parent a7391bc commit 1150a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/v2/documents.go
Original file line number Diff line number Diff line change
Expand Up @@ -958,8 +958,8 @@ func updateRecentlyViewedDocs(
}

// Trim recently viewed documents to a length of 5.
if len(docs) > 5 {
docs = docs[:5]
if len(docs) > 10 {
docs = docs[:10]
}

// Update user.
Expand Down

0 comments on commit 1150a28

Please sign in to comment.