Nightly Issues (2) (#2619)
This commit is contained in:
parent
a9cde5eaf7
commit
601acf5a84
2 changed files with 9 additions and 1 deletions
|
@ -643,6 +643,7 @@ public class ScrobblingService : IScrobblingService
|
|||
.Concat(addToWantToRead.Select(r => r.AppUser))
|
||||
.Concat(removeWantToRead.Select(r => r.AppUser))
|
||||
.Concat(ratingEvents.Select(r => r.AppUser))
|
||||
.Where(user => !string.IsNullOrEmpty(user.AniListAccessToken))
|
||||
.DistinctBy(u => u.Id)
|
||||
.ToList();
|
||||
foreach (var user in usersToScrobble)
|
||||
|
@ -886,6 +887,7 @@ public class ScrobblingService : IScrobblingService
|
|||
|
||||
private async Task<int> SetAndCheckRateLimit(IDictionary<int, int> userRateLimits, AppUser user, string license)
|
||||
{
|
||||
if (string.IsNullOrEmpty(user.AniListAccessToken)) return 0;
|
||||
try
|
||||
{
|
||||
if (!userRateLimits.ContainsKey(user.Id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue