mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:57:22 +01:00
rework query for individual cache
This commit is contained in:
parent
5316daf7d8
commit
388a078e2e
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ public class UserPairCacheService : IHostedService
|
|||
|
||||
private async Task<UserInfo?> BuildIndividualCache(MareDbContext dbContext, string uid, string otheruid)
|
||||
{
|
||||
var pairs = await dbContext.GetAllPairsForUser(uid).Where(u => u.OtherUserUID == otheruid).ToListAsync().ConfigureAwait(false);
|
||||
var pairs = (await dbContext.GetAllPairsForUser(uid).ToListAsync().ConfigureAwait(false)).Where(u => string.Equals(u.OtherUserUID, otheruid, StringComparison.Ordinal)).ToList();
|
||||
|
||||
if (!pairs.Any()) return null;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue