Fixed patreon reward bug

This commit is contained in:
Kwoth
2022-01-20 13:26:47 +01:00
parent e32a65bca4
commit 50346fc5b4

View File

@@ -295,7 +295,7 @@ namespace NadekoBot.Modules.Utility.Services
var toAward = eligibleFor - usr.AmountRewardedThisMonth; var toAward = eligibleFor - usr.AmountRewardedThisMonth;
usr.LastReward = now; usr.LastReward = now;
usr.AmountRewardedThisMonth = toAward; usr.AmountRewardedThisMonth = eligibleFor;
await uow.SaveChangesAsync(); await uow.SaveChangesAsync();
await _currency.AddAsync(userId, "Patreon reward - update", toAward, gamble: true); await _currency.AddAsync(userId, "Patreon reward - update", toAward, gamble: true);