Random Messages don't show empty roles
No Flex Button in random raids Reworked random sign up to keep roles after signing off
This commit is contained in:
parent
0c319a0a8a
commit
2288e48308
7 changed files with 161 additions and 70 deletions
|
@ -55,6 +55,7 @@ namespace Lieb.Data
|
|||
return context.LiebUsers
|
||||
.Include(u => u.GuildWars2Accounts)
|
||||
.ThenInclude(a => a.EquippedBuilds)
|
||||
.ThenInclude(b => b.GuildWars2Build)
|
||||
.FirstOrDefault(u => u.Id == userId);
|
||||
}
|
||||
else
|
||||
|
@ -281,7 +282,7 @@ namespace Lieb.Data
|
|||
}
|
||||
else
|
||||
{
|
||||
return user.GuildWars2Accounts.Where(a => a.EquippedBuilds.Count > 0).ToList();
|
||||
return user.GuildWars2Accounts.Where(a => a.EquippedBuilds.Where(b => b.GuildWars2Build.UseInRandomRaid).Count() > 0).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue