diff --git a/config/config.go b/config/config.go index 0232388..230a18f 100644 --- a/config/config.go +++ b/config/config.go @@ -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" diff --git a/extra/ent/template/tmpl/pagination.tmpl b/extra/ent/template/tmpl/pagination.tmpl index 4b7ee22..e2f6bb2 100644 --- a/extra/ent/template/tmpl/pagination.tmpl +++ b/extra/ent/template/tmpl/pagination.tmpl @@ -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