From ffd176b42d208498ccb60950abcc6a37fd80f4e4 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Mon, 8 Jul 2024 13:55:38 +0700 Subject: [PATCH] Don't need this; EF can figure out the Select. --- backend/LexBoxApi/Services/ProjectService.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/LexBoxApi/Services/ProjectService.cs b/backend/LexBoxApi/Services/ProjectService.cs index ade2382fa..d0e243cae 100644 --- a/backend/LexBoxApi/Services/ProjectService.cs +++ b/backend/LexBoxApi/Services/ProjectService.cs @@ -144,7 +144,6 @@ public async ValueTask LookupProjectOrgIds(Guid projectId) var cacheKey = $"ProjectOrgsForId:{projectId}"; if (memoryCache.TryGetValue(cacheKey, out Guid[]? orgIds)) return orgIds ?? []; orgIds = await dbContext.Projects - .Include(p => p.Organizations) .Where(p => p.Id == projectId) .Select(p => p.Organizations.Select(o => o.Id).ToArray()) .FirstOrDefaultAsync();