dispatch with context where missing (#40810)

This commit is contained in:
Will Browne
2021-10-27 15:57:06 +02:00
committed by GitHub
parent 53b283ee01
commit 67449b95e9
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -659,7 +659,7 @@ func (hs *HTTPServer) RestoreDashboardVersion(c *models.ReqContext, apiCmd dtos.
func GetDashboardTags(c *models.ReqContext) {
query := models.GetDashboardTagsQuery{OrgId: c.OrgId}
err := bus.Dispatch(&query)
err := bus.DispatchCtx(c.Req.Context(), &query)
if err != nil {
c.JsonApiErr(500, "Failed to get tags from database", err)
return