diff --git a/api/router/webapi/rollouts.go b/api/router/webapi/rollouts.go index 2e5c911..67d4bd8 100644 --- a/api/router/webapi/rollouts.go +++ b/api/router/webapi/rollouts.go @@ -85,7 +85,7 @@ func (api *RolloutsAPI) GetRolloutStatistics(c echo.Context) error { } var reports []models.Report - if err = api.db.Select(q.Eq("Device", d.UID)).Limit(1).OrderBy("Timestamp").Reverse().Find(&reports); err != nil { + if err = api.db.Select(q.Eq("Device", d.UID), q.Eq("Rollout", rollout.ID)).Limit(1).OrderBy("Timestamp").Reverse().Find(&reports); err != nil { continue }