more rank stuff, might be ready for use

This commit is contained in:
2021-11-07 00:24:33 -04:00
parent d87377c25c
commit 6f591af5ae
13 changed files with 1350 additions and 5 deletions

View File

@@ -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();
}
}
}