Chore: Add context for dashboards (#39844)
* Add context for dashboards * Remove GetDashboardCtx * Remove ctx.TODO
This commit is contained in:
1 parent
697a90699b
commit
2759b16ef5
18 files changed
+112
-113
No files matched your search
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func (hs *HTTPServer) AdminProvisioningReloadDashboards(c *models.ReqContext) response.Response {
|
||||
err := hs.ProvisioningService.ProvisionDashboards()
|
||||
err := hs.ProvisioningService.ProvisionDashboards(c.Req.Context())
|
||||
if err != nil && !errors.Is(err, context.Canceled) {
|
||||
return response.Error(500, "", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user