Skip to content

Commit

Permalink
Merge pull request #235 from Viva-con-Agua/bugfix/userlist
Browse files Browse the repository at this point in the history
log and context
  • Loading branch information
deinelieblings authored Feb 25, 2025
2 parents e3d78e0 + 72de914 commit a4eb824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dao/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func UsersGet(i *models.UserQuery, token *models.AccessToken) (result *[]models.

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

0 comments on commit a4eb824

Please sign in to comment.