mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Fixed a patreon reward bug and coinmarketcap ratelimit issue
This commit is contained in:
@@ -264,7 +264,7 @@ public class PatreonRewardsService : INService, IReadyExecutor
|
||||
var toAward = eligibleFor - usr.AmountRewardedThisMonth;
|
||||
|
||||
usr.LastReward = now;
|
||||
usr.AmountRewardedThisMonth = toAward;
|
||||
usr.AmountRewardedThisMonth = eligibleFor;
|
||||
await uow.SaveChangesAsync();
|
||||
|
||||
await _currency.AddAsync(userId, toAward, new("patreon", "update"));
|
||||
|
Reference in New Issue
Block a user