Skip to content

Commit

Permalink
Disable cache for configuration query (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
MKet authored Nov 25, 2024
1 parent 545eca0 commit 64827d9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public WtsHealthService(IDatabaseConnection databaseConnection, IHttpContextAcce
}

var query = $"SELECT configuration, time_id, state, next_run FROM wts_services WHERE {String.Join(" AND ", conditions)}";
var datatable = await databaseConnection.GetAsync(query);

var datatable = await databaseConnection.GetAsync(query, skipCache: true);
if (datatable.Rows.Count == 0)
{
return HealthCheckResult.Unhealthy("No data found");
Expand Down

0 comments on commit 64827d9

Please sign in to comment.