forked from Sarah/Lieb-Website
fixed polls for aditional users
This commit is contained in:
parent
eaa0b4c4ef
commit
00a038ae15
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ namespace Lieb.Data
|
|||
using var context = _contextFactory.CreateDbContext();
|
||||
Poll? poll = context.Polls
|
||||
.Include(p => p.Answers)
|
||||
.Include(p => p.Options)
|
||||
.FirstOrDefault(p => p.PollId == pollId && !p.Answers.Where(a => a.UserId == userId).Any());
|
||||
|
||||
if (poll == null) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue