Update ranking handling to store all entries and only return top for each user, update drone config to push to dockerhub
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -32,7 +32,7 @@ namespace TOOHUCardAPI.Data.Repositories
|
||||
|
||||
public async Task<RankEntry> GetRankEntry(long steamid, RankType rankType)
|
||||
{
|
||||
return await AllIncluded().Where(i => i.User.SteamId == steamid && i.RankType == rankType).FirstOrDefaultAsync();
|
||||
return await AllIncluded().Where(i => i.User.SteamId == steamid && i.RankType == rankType).OrderByDescending(i => i.Wave).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public async Task<RankEntry> InsertRankEntry(RankEntry entry)
|
||||
|
||||
Reference in New Issue
Block a user