more rank stuff, might be ready for use
This commit is contained in:
@@ -22,7 +22,7 @@ namespace TOOHUCardAPI.Data.Repositories
|
||||
|
||||
private IQueryable<RankEntry> AllIncluded()
|
||||
{
|
||||
return _appDbContext.RankEntries.Include(i => i.TowersUsed);
|
||||
return _appDbContext.RankEntries.Include(i => i.TowersUsed).Include(i => i.User);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<RankEntry>> GetRankEntries(RankType rankType)
|
||||
@@ -33,6 +33,7 @@ namespace TOOHUCardAPI.Data.Repositories
|
||||
public async Task InsertRankEntry(RankEntry entry)
|
||||
{
|
||||
await _appDbContext.RankEntries.AddAsync(entry);
|
||||
await _appDbContext.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user