Skip to content

Commit

Permalink
Missing connection dispose (#14709)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkech committed Nov 17, 2023
1 parent 0e2726a commit e14c574
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public async Task<IActionResult> Query(AdminQueryViewModel model)
var stopwatch = new Stopwatch();
stopwatch.Start();

var connection = _store.Configuration.ConnectionFactory.CreateConnection();
await using var connection = _store.Configuration.ConnectionFactory.CreateConnection();
var dialect = _store.Configuration.SqlDialect;

var parameters = JsonConvert.DeserializeObject<Dictionary<string, object>>(model.Parameters);
Expand Down

0 comments on commit e14c574

Please sign in to comment.