From 50346fc5b451f902e8d1a428762538a3a0d3e1ba Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 20 Jan 2022 13:26:47 +0100 Subject: [PATCH] Fixed patreon reward bug --- src/NadekoBot/Modules/Utility/Services/PatreonRewardsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Utility/Services/PatreonRewardsService.cs b/src/NadekoBot/Modules/Utility/Services/PatreonRewardsService.cs index 30de3be6f..575c780c4 100644 --- a/src/NadekoBot/Modules/Utility/Services/PatreonRewardsService.cs +++ b/src/NadekoBot/Modules/Utility/Services/PatreonRewardsService.cs @@ -295,7 +295,7 @@ namespace NadekoBot.Modules.Utility.Services var toAward = eligibleFor - usr.AmountRewardedThisMonth; usr.LastReward = now; - usr.AmountRewardedThisMonth = toAward; + usr.AmountRewardedThisMonth = eligibleFor; await uow.SaveChangesAsync(); await _currency.AddAsync(userId, "Patreon reward - update", toAward, gamble: true);