Skip to content

Commit

Permalink
Merge pull request #95 from suyuan32/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
suyuan32 authored Apr 20, 2024
2 parents 499068a + d64a033 commit 855b7c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var OldGoZeroVersion = []string{"v1.5.6", "v1.6.0", "v1.6.1", "v1.6.2", "v1.6.3"
const DefaultToolVersion = "v1.6.10"

// GoctlsVersion is goctls version
const GoctlsVersion = "v1.7.0"
const GoctlsVersion = "v1.7.1"

// CoreVersion is the core service version.
const CoreVersion = "v1.4.0"
Expand Down
4 changes: 3 additions & 1 deletion extra/ent/template/tmpl/pagination.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ in the LICENSE file in the root directory of this source tree.
Size: pageSize,
}

count, err := {{ $r }}.Clone().Count(ctx)
query := {{ $r }}.Clone()
query.ctx.Fields = nil
count, err := query.Count(ctx)

if err != nil {
return nil, err
Expand Down

0 comments on commit 855b7c2

Please sign in to comment.