Skip to content

Commit

Permalink
Make GetAllAccounts not include history
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Aug 20, 2024
1 parent e5f3aa7 commit 1e61867
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ReplayBrowser/Services/AccountService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,14 @@ public async Task AddHistory(Account? callerAccount, HistoryEntry historyEntry)
}

/// <summary>
/// Returns all accounts, their settings and history.
/// Returns all accounts and their settings
/// </summary>
public async Task<List<Account>> GetAllAccounts()
{
using var scope = _scopeFactory.CreateScope();
var context = scope.ServiceProvider.GetRequiredService<ReplayDbContext>();
return await context.Accounts
.Include(a => a.Settings)
.Include(a => a.History)
.ToListAsync();
}

Expand Down

0 comments on commit 1e61867

Please sign in to comment.