🐛 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
|
var polls = await query
|
||||||
.Skip(offset)
|
.Skip(offset)
|
||||||
.Take(take)
|
.Take(take)
|
||||||
|
.Include(p => p.Questions)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
return Ok(polls);
|
return Ok(polls);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user