rank endpoint done
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user