Skip to content

Commit

Permalink
Don't need this; EF can figure out the Select.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jul 8, 2024
1 parent 45dbafb commit ffd176b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/LexBoxApi/Services/ProjectService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ public async ValueTask<Guid[]> 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();
Expand Down

0 comments on commit ffd176b

Please sign in to comment.