backend/sqlstore: move GetDashboardTags to dashboard service (#50091)

+ removing some functions that were already copied to the dashboard service in a previous pr.
This commit is contained in:
Kristin Laemmert
2022-06-02 10:00:47 -04:00
committed by GitHub
parent bdf50f3dd2
commit 0e991461b0
11 changed files with 67 additions and 108 deletions

View File

@@ -791,7 +791,7 @@ func (hs *HTTPServer) RestoreDashboardVersion(c *models.ReqContext) response.Res
func (hs *HTTPServer) GetDashboardTags(c *models.ReqContext) {
query := models.GetDashboardTagsQuery{OrgId: c.OrgId}
err := hs.SQLStore.GetDashboardTags(c.Req.Context(), &query)
err := hs.dashboardService.GetDashboardTags(c.Req.Context(), &query)
if err != nil {
c.JsonApiErr(500, "Failed to get tags from database", err)
return