Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SomaRasu committed Feb 13, 2021
1 parent c05023e commit 519d0e5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,10 +789,9 @@ module.exports = ({ cooler, isPublic }) => {

// get an array of voter names, for display on hovers
const pendingVoterNames = voters.map(async (author) => ({
name: await models.about.name(author),
key: author
})
);
name: await models.about.name(author),
key: author,
}));
const voterNames = await Promise.all(pendingVoterNames);

const { name, avatarId, avatarUrl } = await getUserInfo(
Expand Down Expand Up @@ -1046,12 +1045,14 @@ module.exports = ({ cooler, isPublic }) => {
);
}),
pull.take(maxMessages),
pull.unique(message => message.value.content.vote.link),
pull.unique((message) => message.value.content.vote.link),
pullParallelMap(async (val, cb) => {
const msg = await post.get(val.value.content.vote.link);
cb(null, msg);
}),
pull.filter((message) => message.value.meta.votes.map(voter => voter.key).includes(feed)),
pull.filter((message) =>
message.value.meta.votes.map((voter) => voter.key).includes(feed)
),
pull.collect((err, collectedMessages) => {
if (err) {
reject(err);
Expand Down

0 comments on commit 519d0e5

Please sign in to comment.