[backend] Code cleanup
This commit is contained in:
parent
57ac4750ad
commit
2c529495f3
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ public class NoteService(
|
|||
{
|
||||
await db.PollVotes.Where(p => p.Note == note).ExecuteDeleteAsync();
|
||||
note.Poll.Choices = poll.Choices;
|
||||
note.Poll.Votes = poll.Choices.Select(p => 0).ToList();
|
||||
note.Poll.Votes = poll.Choices.Select(_ => 0).ToList();
|
||||
note.Poll.Multiple = poll.Multiple;
|
||||
db.Update(note.Poll);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue