Stars: Add dashboard_uid and org_id to table (#96408)
This commit is contained in:
@@ -322,11 +322,11 @@ func (s *ServiceImpl) buildStarredItemsNavLinks(c *contextmodel.ReqContext) ([]*
|
||||
}
|
||||
|
||||
if len(starredDashboardResult.UserStars) > 0 {
|
||||
var ids []int64
|
||||
for id := range starredDashboardResult.UserStars {
|
||||
ids = append(ids, id)
|
||||
var uids []string
|
||||
for uid := range starredDashboardResult.UserStars {
|
||||
uids = append(uids, uid)
|
||||
}
|
||||
starredDashboards, err := s.dashboardService.GetDashboards(c.Req.Context(), &dashboards.GetDashboardsQuery{DashboardIDs: ids, OrgID: c.SignedInUser.GetOrgID()})
|
||||
starredDashboards, err := s.dashboardService.GetDashboards(c.Req.Context(), &dashboards.GetDashboardsQuery{DashboardUIDs: uids, OrgID: c.SignedInUser.GetOrgID()})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user