Skip to content

Commit

Permalink
log and context
Browse files Browse the repository at this point in the history
  • Loading branch information
deinelieblings committed Feb 25, 2025
1 parent 9f0687f commit 72de914
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 72de914

Please sign in to comment.