rank endpoint done

This commit is contained in:
2021-11-07 14:00:18 -05:00
parent e232accdb1
commit e14f7fae74
18 changed files with 2536 additions and 25 deletions

View File

@@ -29,6 +29,13 @@ namespace TOOHUCardAPI.Data.Services
_logger.LogInformation("User with steamid {SteamId} was given {PointsGiven} points. New total: {PointsTotal}", user.SteamId, points, user.Point);
}
public async Task AwardPoints(long steamid, int points, string reason)
{
User user = await _userRepository.GetUser(steamid);
await AddPoints(points, user);
_logger.LogInformation("awarded {Points} points to {SteamId} for reason [\"{reason}\"]", points, steamid, reason);
}
public async Task<User> SaveKeyTotal(long steamId, int keyTotal, int keyUseCount)
{
User user = await _userRepository.GetUser(steamId);