Skip to content

Commit

Permalink
🐛 Fix issue composite pagination. (#339)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel committed May 18, 2023
1 parent 5e39c8e commit 8402628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ func (h AnalysisHandler) IssueComposites(ctx *gin.Context) {
db = db.Where("i.ID IN (?)", q)
}
db = db.Group("i.RuleSet,i.Rule")
db = db.Order("i.RuleSet,i.Rule")
// Count.
count := int64(0)
result := db.Model(&model.Issue{}).Count(&count)
Expand All @@ -538,6 +537,7 @@ func (h AnalysisHandler) IssueComposites(ctx *gin.Context) {
Affected int
}
var list []M
db = h.paginated(ctx, db)
result = db.Scan(&list)
if result.Error != nil {
_ = ctx.Error(result.Error)
Expand Down

0 comments on commit 8402628

Please sign in to comment.