Skip to content

Commit 743b8bb

Browse files
authored
correct query for MSELs (#121)
1 parent 2e53bf3 commit 743b8bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Blueprint.Api/Blueprint.Api.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<Version>1.4.1</Version>
4+
<Version>1.4.2</Version>
55
<TargetFramework>net8.0</TargetFramework>
66
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
77
<NoWarn>CS1591</NoWarn>

Blueprint.Api/Hubs/MainHub.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ private async Task<List<string>> GetMselIdList(string userId)
124124
.ToListAsync();
125125
// get my unit's msels
126126
var unitMselIds = _context.MselUnits
127-
.Where(t => unitIdList.Contains(t.Id) && t.Msel.Status != Data.Enumerations.MselItemStatus.Archived)
128-
.Select(t => t.Msel.Id.ToString());
127+
.Where(mu => unitIdList.Contains(mu.UnitId) && mu.Msel.Status != Data.Enumerations.MselItemStatus.Archived)
128+
.Select(mu => mu.MselId.ToString());
129129
var unitMselIdList = await unitMselIds
130130
.Where(id => id != null)
131131
.ToListAsync();

0 commit comments

Comments
 (0)