🐛 Fix poll didn't include questions when listing

This commit is contained in:
2025-08-05 18:06:26 +08:00
parent 18882c08d9
commit d7a39ab574

View File

@@ -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);
}