From 00a038ae154db3194dddf53bd7f27fb5b89d29ed Mon Sep 17 00:00:00 2001 From: Sarah Faey Date: Tue, 14 Feb 2023 19:09:44 +0100 Subject: [PATCH] fixed polls for aditional users --- Lieb/Data/PollService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Lieb/Data/PollService.cs b/Lieb/Data/PollService.cs index a5bae8f..9b7812a 100644 --- a/Lieb/Data/PollService.cs +++ b/Lieb/Data/PollService.cs @@ -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;