bus: DispatchCtx can now invoke any handler

This commit is contained in:
bergquist
2018-06-15 12:46:20 +02:00
parent 5af0b924ff
commit e2275701d8
3 changed files with 69 additions and 14 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func GetDashboard(c *m.ReqContext) Response {
}
isDashboardProvisioned := &m.IsDashboardProvisionedQuery{DashboardId: dash.Id}
err = bus.Dispatch(isDashboardProvisioned)
err = bus.DispatchCtx(c.Req.Context(), isDashboardProvisioned)
if err != nil {
return Error(500, "Error while checking if dashboard is provisioned", err)
}