mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 17:12:29 +08:00
feat(alerting): requests looks to be working again
This commit is contained in:
@ -123,9 +123,7 @@ func GetDataSourceByName(c *middleware.Context) Response {
|
||||
return ApiError(500, "Failed to query datasources", err)
|
||||
}
|
||||
|
||||
ds := query.Result
|
||||
dtos := convertModelToDtos(ds)
|
||||
|
||||
dtos := convertModelToDtos(query.Result)
|
||||
return Json(200, &dtos)
|
||||
}
|
||||
|
||||
@ -148,7 +146,7 @@ func GetDataSourceIdByName(c *middleware.Context) Response {
|
||||
return Json(200, &dtos)
|
||||
}
|
||||
|
||||
func convertModelToDtos(ds m.DataSource) dtos.DataSource {
|
||||
func convertModelToDtos(ds *m.DataSource) dtos.DataSource {
|
||||
return dtos.DataSource{
|
||||
Id: ds.Id,
|
||||
OrgId: ds.OrgId,
|
||||
|
Reference in New Issue
Block a user