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
This commit is contained in:
bergquist 2016-09-01 17:21:13 +02:00
parent 86aea89214
commit 1955defc43

View File

@ -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 {