api: omit unused fields for /api/datasources

Fixes #7822
This commit is contained in:
Daniel Lee
2017-04-25 15:23:36 +02:00
parent 4720216e5e
commit aee4af2148
2 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func GetDataSources(c *middleware.Context) Response {
result := make(dtos.DataSourceList, 0)
for _, ds := range query.Result {
dsItem := dtos.DataSource{
dsItem := dtos.DataSourceListItemDTO{
Id: ds.Id,
OrgId: ds.OrgId,
Name: ds.Name,