Przeglądaj źródła

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
bergquist 9 lat temu
rodzic
commit
1955defc43
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      pkg/api/datasources.go

+ 1 - 1
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 {