fix(api): add missing jsonData field to dto

The field is available on the dto so I guess is should be used.
Otherwise we should remove the field rather then not setting it.

ref #5944
pull/5953/head
bergquist 9 years ago
parent 86aea89214
commit 1955defc43
  1. 2
      pkg/api/datasources.go

@ -22,7 +22,6 @@ func GetDataSources(c *middleware.Context) {
result := make(dtos.DataSourceList, 0)
for _, ds := range query.Result {
dsItem := dtos.DataSource{
Id: ds.Id,
OrgId: ds.OrgId,
@ -35,6 +34,7 @@ func GetDataSources(c *middleware.Context) {
User: ds.User,
BasicAuth: ds.BasicAuth,
IsDefault: ds.IsDefault,
JsonData: ds.JsonData,
}
if plugin, exists := plugins.DataSources[ds.Type]; exists {

Loading…
Cancel
Save