backend/sqlstore: move GetDashboards to Dashboard Service (#49175)

I also did some mild file renaming to try and get the dashboards package closer in line with the sqlstore split design doc.
This commit is contained in:
Kristin Laemmert
2022-05-19 10:59:12 -04:00
committed by GitHub
parent 66220758b3
commit 33359aee6c
10 changed files with 63 additions and 27 deletions

View File

@@ -16,7 +16,7 @@ func (hs *HTTPServer) populateDashboardsByID(ctx context.Context, dashboardByIDs
if len(dashboardByIDs) > 0 {
dashboardQuery := models.GetDashboardsQuery{DashboardIds: dashboardByIDs}
if err := hs.SQLStore.GetDashboards(ctx, &dashboardQuery); err != nil {
if err := hs.dashboardService.GetDashboards(ctx, &dashboardQuery); err != nil {
return result, err
}