Skip to content

Commit

Permalink
fix: fix assignment APIs'
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Nov 13, 2024
1 parent 92cf8c3 commit 8bcd813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compliance/http_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5736,7 +5736,7 @@ func (h *HttpHandler) GetBenchmarkAssignments(echoCtx echo.Context) error {
var status api.BenchmarkAssignmentStatus
if benchmark.AutoAssign {
status = api.BenchmarkAssignmentStatusAutoEnable
} else if len(results) > 0 {
} else if assignedCount > 0 {
status = api.BenchmarkAssignmentStatusEnabled
} else {
status = api.BenchmarkAssignmentStatusDisabled
Expand Down

0 comments on commit 8bcd813

Please sign in to comment.