Skip to content

Commit

Permalink
Merge pull request #416 from csharpfritz/fix_TwitchRelay
Browse files Browse the repository at this point in the history
  • Loading branch information
csharpfritz authored Mar 16, 2024
2 parents 6850ce6 + 1439c28 commit e45f7a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TagzApp.TwitchRelay/ProfilePicsFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ string userNames

var response = req.CreateResponse(HttpStatusCode.OK);

var names = userNames.Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
var names = userNames.ToLowerInvariant().Split(",", StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);

var users = await _Repository.GetProfilePics(names);
await response.WriteAsJsonAsync(users);
Expand Down
2 changes: 1 addition & 1 deletion src/TagzApp.TwitchRelay/TwitchProfileRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ await Parallel.ForEachAsync(profiles, async (profile, token) =>
});

var usersToFetch = userNames.Except(outList.Keys.Select(k => GetUserNameFromCacheKey(k))).ToList();
var usersToFetch = userNames.Except(outList.Keys).ToList();
if (usersToFetch.Any())
{

Expand Down

0 comments on commit e45f7a9

Please sign in to comment.