we can now query

This commit is contained in:
2022-09-18 16:09:54 +02:00
parent cf2418c72b
commit e35672c262
3 changed files with 32 additions and 18 deletions

View File

@@ -113,12 +113,15 @@ func (pr *ProcessRepos) processRepo(ctx context.Context, repoUrl string, action
}
if len(action.Schema.Queries) > 0 {
result, err := action.Query(ctx, area)
result, found, err := action.Query(ctx, area)
if err != nil {
return err
}
pr.logger.Info("Query result", zap.Strings("result", result))
if found {
pr.logger.Info("Query result", zap.Strings("result", result))
// TODO: Append to real result, and return together
}
}
if len(action.Schema.Actions) > 0 {