polls are now sent after signing up
This commit is contained in:
parent
d3e69d4be7
commit
9e3eaebb3d
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ namespace Lieb.Data
|
||||||
using var context = _contextFactory.CreateDbContext();
|
using var context = _contextFactory.CreateDbContext();
|
||||||
Poll? poll = context.Polls
|
Poll? poll = context.Polls
|
||||||
.Include(p => p.Answers)
|
.Include(p => p.Answers)
|
||||||
.FirstOrDefault(p => p.PollId == pollId && p.Answers.Where(a => a.UserId == userId).Any());
|
.FirstOrDefault(p => p.PollId == pollId && !p.Answers.Where(a => a.UserId == userId).Any());
|
||||||
|
|
||||||
if (poll == null) return;
|
if (poll == null) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue