mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
fix memory leak issue related to AddDbContext not working as expected
This commit is contained in:
@ -26,7 +26,7 @@ namespace Stats.Helpers
|
||||
public async Task<ResourceQueryHelperResult<StatsInfoResult>> QueryResource(StatsInfoRequest query)
|
||||
{
|
||||
var result = new ResourceQueryHelperResult<StatsInfoResult>();
|
||||
using var context = _contextFactory.CreateContext(enableTracking: false);
|
||||
await using var context = _contextFactory.CreateContext(enableTracking: false);
|
||||
|
||||
// we need to get the ratings separately because there's not explicit FK
|
||||
var ratings = await context.Set<EFClientRatingHistory>()
|
||||
|
Reference in New Issue
Block a user