Skip to content

Commit

Permalink
set limit
Browse files Browse the repository at this point in the history
  • Loading branch information
deinelieblings committed Feb 25, 2025
1 parent 72de914 commit 3fc45e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dao/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func UsersGet(i *models.UserQuery, token *models.AccessToken) (result *[]models.

count := vmod.Count{}
var cErr error
if cErr = UserViewCollection.AggregateOne(context.Background(), models.UserPermittedPipeline(token).Match(filter).Count().Pipe, &count); cErr != nil {
if cErr = UserViewCollection.AggregateOne(context.Background(), models.UserPermittedPipeline(token).Match(filter).Limit(1000, 1000).Count().Pipe, &count); cErr != nil {
log.Print(cErr)
list_size = 1
} else {
Expand Down

0 comments on commit 3fc45e9

Please sign in to comment.