Skip to content

Commit

Permalink
remove OrderBy nil variadic argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Sep 22, 2022
1 parent ccc3707 commit 6c005c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/search/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (s *Provider) Exec(items any) (*Result, error) {
// count
var totalCount int64
countQuery := modelsQuery
countQuery.Distinct(false).Select("COUNT(*)").OrderBy(nil...) // unset ORDER BY statements
countQuery.Distinct(false).Select("COUNT(*)").OrderBy() // unset ORDER BY statements
if s.countColumn != "" {
countQuery.Select("COUNT(DISTINCT(" + s.countColumn + "))")
}
Expand Down

0 comments on commit 6c005c4

Please sign in to comment.