Remove query execution tracking properties
Simplified the codebase by removing `BodyQueryExecuted`, `HeaderQueryExecuted`, and related computed properties (`IsBodyQueryReturnedNoData` and `IsHeaderQueryReturnedNoData`) from `RecActionDto`. These properties were used to track whether `BodyQuery` and `HeaderQuery` were executed and whether they returned data. Updated `BodyQueryBehavior` and `HeaderQueryBehavior` to remove logic that set these properties. Also removed the conditional block in `InvokeRecActionCommandHandler` that logged warnings based on these properties. These changes streamline the code and reflect a shift away from tracking query execution and results at this level.
This commit is contained in:
@@ -15,8 +15,6 @@ public class BodyQueryBehavior<TRecAction>(IRecDbContext dbContext) : IPipelineB
|
||||
|
||||
var result = await dbContext.BodyQueryResults.FromSqlRaw(action.BodyQuery).SingleOrDefaultAsync(cancel);
|
||||
|
||||
action.BodyQueryExecuted = true;
|
||||
|
||||
action.Body = result?.RawBody;
|
||||
|
||||
return await next(cancel);
|
||||
|
||||
Reference in New Issue
Block a user