Skip to content

Commit

Permalink
minor fix to query
Browse files Browse the repository at this point in the history
Signed-off-by: Lillie Dae <[email protected]>
  • Loading branch information
lillie-dae committed Jun 5, 2023
1 parent 2674f64 commit 7575af4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ public async Task<long> GetStatsCountAsync(DateTime startTime, DateTime endTime,
var builder = Builders<ExecutionStats>.Filter;
var filter = builder.Empty;

filter &= builder.Where(t => t.StartedUTC == startTime.ToUniversalTime());
filter &= builder.Where(t => t.StartedUTC == endTime.ToUniversalTime());
filter &= builder.Where(t => t.StartedUTC >= startTime.ToUniversalTime());
filter &= builder.Where(t => t.StartedUTC <= endTime.ToUniversalTime());
filter &= builder.Where(t => workflowNull || t.WorkflowId == workflowId);
filter &= builder.Where(t => taskIdNull || t.TaskId == taskId);
if (statusFilter is not null)
Expand Down

0 comments on commit 7575af4

Please sign in to comment.