From 8652bd702684e176d521a016abccf5e4741cd8ef Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Mon, 1 Jul 2024 16:18:53 +0300 Subject: [PATCH] Fix --- .../Repositories/CrashReportEntityRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BUTR.Site.NexusMods.Server/Repositories/CrashReportEntityRepository.cs b/src/BUTR.Site.NexusMods.Server/Repositories/CrashReportEntityRepository.cs index a3bda199..1a6c5964 100644 --- a/src/BUTR.Site.NexusMods.Server/Repositories/CrashReportEntityRepository.cs +++ b/src/BUTR.Site.NexusMods.Server/Repositories/CrashReportEntityRepository.cs @@ -91,6 +91,7 @@ public async Task> GetCrashReportsPaginatedAsync(Ne { var moduleIds = user.ToModules.Select(x => x.Module.ModuleId).ToHashSet(); var nexusModsModIds = user.ToNexusModsMods.Select(x => x.NexusModsMod.NexusModsModId).ToHashSet(); + moduleIds.AddRange(_dbContext.NexusModsModModules.Where(x => nexusModsModIds.Contains(x.NexusModsModId)).Select(x => x.ModuleId)); IQueryable DbQueryBase(Expression> predicate) => _dbContext.CrashReports .Include(x => x.ToUsers).ThenInclude(x => x.NexusModsUser)