Skip to content

Commit

Permalink
Update src/graphql/operations/users.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Jul 21, 2024
1 parent 924ad1e commit 64e3c5a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/graphql/operations/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ export default async function (parent, args) {
);
counts.forEach((count: any) => {
const user = users.find((u: any) => u.id === count.user);
if (user) {
user.votesCount = count.votesCount;
user.proposalsCount = count.proposalsCount;
user.lastVote = count.lastVote;
}
user.votesCount = count.votesCount;
user.proposalsCount = count.proposalsCount;
user.lastVote = count.lastVote;

});
}
return users.map(formatUser);
Expand Down

0 comments on commit 64e3c5a

Please sign in to comment.