Show correct count of jobs/tags

This commit is contained in:
Lou Knauer
2022-02-16 09:32:38 +01:00
parent 319cdfd069
commit b85832646f
4 changed files with 19 additions and 6 deletions

View File

@@ -102,6 +102,7 @@ func (r *Resolver) queryJobs(ctx context.Context, filters []*model.JobFilter, pa
for _, f := range filters {
query = buildWhereClause(f, query)
}
query = securityCheck(ctx, query)
var count int
if err := query.RunWith(r.DB).Scan(&count); err != nil {
return nil, 0, err