mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Rename Recipient path parameter to DatasourceID (#47949)
This commit is contained in:
committed by
GitHub
parent
6eb41f9cb3
commit
54962c2f0c
@@ -292,8 +292,8 @@ func Instrument(
|
||||
|
||||
// TODO: We could look up the datasource type via our datasource service
|
||||
var backend string
|
||||
recipient := web.Params(c.Req)[":Recipient"]
|
||||
if recipient == apimodels.GrafanaBackend.String() || recipient == "" {
|
||||
datasourceID := web.Params(c.Req)[":DatasourceID"]
|
||||
if datasourceID == apimodels.GrafanaBackend.String() || datasourceID == "" {
|
||||
backend = GrafanaBackend
|
||||
} else {
|
||||
backend = ProxyBackend
|
||||
|
||||
Reference in New Issue
Block a user