Fixed a patreon reward bug and coinmarketcap ratelimit issue

This commit is contained in:
Kwoth
2022-01-22 18:20:41 +01:00
parent 0c88dd84cf
commit c6b0d75fd7
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ public class CryptoService : INService
}
},
"",
TimeSpan.FromHours(1));
TimeSpan.FromHours(2));
return JsonConvert.DeserializeObject<CryptoResponse>(fullStrData)?.Data ?? new();
}

View File

@@ -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"));