🐛 Fix poll didn't include questions when listing
This commit is contained in:
@@ -94,6 +94,7 @@ public class PollController(AppDatabase db, PollService polls, PublisherService
|
||||
var polls = await query
|
||||
.Skip(offset)
|
||||
.Take(take)
|
||||
.Include(p => p.Questions)
|
||||
.ToListAsync();
|
||||
return Ok(polls);
|
||||
}
|
||||
|
Reference in New Issue
Block a user