mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
Refactor
This commit is contained in:
parent
f87b1582a7
commit
0f9e0b9c83
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ export class NoteRepository extends Repository<Note> {
|
||||||
const host = note.userHost;
|
const host = note.userHost;
|
||||||
|
|
||||||
async function populatePoll() {
|
async function populatePoll() {
|
||||||
const poll = await Polls.findOne({ noteId: note.id }).then(ensure);
|
const poll = await Polls.findOne(note.id).then(ensure);
|
||||||
const choices = poll.choices.map(c => ({
|
const choices = poll.choices.map(c => ({
|
||||||
text: c,
|
text: c,
|
||||||
votes: poll.votes[poll.choices.indexOf(c)],
|
votes: poll.votes[poll.choices.indexOf(c)],
|
||||||
|
|
Loading…
Reference in a new issue