Chore: Remove result field from remaining datasources queries (#65054)

remove result field from datasources
This commit is contained in:
Serge Zaitsev
2023-03-20 19:18:21 +01:00
committed by GitHub
parent 70116dc65f
commit 126c4a106e
7 changed files with 15 additions and 17 deletions
+2 -2
View File
@@ -43,12 +43,12 @@ func (c *dsCache) refreshCache(ctx context.Context) error {
defaultDS := make(map[int64]*dsVal, 0)
q := &datasources.GetAllDataSourcesQuery{}
err := c.ds.GetAllDataSources(ctx, q)
dsList, err := c.ds.GetAllDataSources(ctx, q)
if err != nil {
return err
}
for _, ds := range q.Result {
for _, ds := range dsList {
val := &dsVal{
InternalID: ds.ID,
Name: ds.Name,