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

View File

@@ -55,12 +55,12 @@ func (s *DataSourceSecretMigrationService) Migrate(ctx context.Context) error {
if needCompatibility || needMigration {
logger.Debug("performing secret migration", "needs migration", needMigration, "needs compatibility", needCompatibility)
query := &datasources.GetAllDataSourcesQuery{}
err := s.dataSourcesService.GetAllDataSources(ctx, query)
dsList, err := s.dataSourcesService.GetAllDataSources(ctx, query)
if err != nil {
return err
}
for _, ds := range query.Result {
for _, ds := range dsList {
secureJsonData, err := s.dataSourcesService.DecryptedValues(ctx, ds)
if err != nil {
return err