Skip to content

Commit 0973750

Browse files
committed
Update entities.go.tmpl
1 parent 9473812 commit 0973750

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generator/codegen/templates/entities.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ func (o *{{ .CollectionRef }}) GetItemCount() (count int64, err error) {
135135
count = int64(m.GetCount())
136136
return
137137
}
138-
{{ end }}
139138

140139
// New{{ .CollectionRef }} returns a page.
141140
func New{{ .CollectionRef }}Collection() IStaticPage {
142141
return New{{ .CollectionRef }}WithDefaults()
143142
}
143+
{{ end }} {{/* end if not .NoPagination */}}
144144
{{ end }}
145145
{{ range .Params.JobItems -}}
146146
// ============================================================================================

0 commit comments

Comments
 (0)