Skip to content

Commit

Permalink
Merge pull request #758 from bounswe/be/fix_poll-id
Browse files Browse the repository at this point in the history
be/fix_poll-id
  • Loading branch information
Alputer authored Dec 24, 2023
2 parents b4a7a33 + bb74f05 commit b3e7163
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/backend/src/poll/poll.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export class PollModule implements NestModule {
.forRoutes(
{ path: '/poll', method: RequestMethod.GET },
{ path: '/poll/:param', method: RequestMethod.GET },
{ path: '/poll/:id', method: RequestMethod.GET },
);
}
}
2 changes: 1 addition & 1 deletion app/backend/src/poll/poll.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export class PollService {
: null;

let voteDistribution = null;
if (votedOption) {
if (votedOption || poll.is_settled === Settle.SETTLED) {
voteDistribution = await this.voteService.getVoteRate(pollId);
}

Expand Down

0 comments on commit b3e7163

Please sign in to comment.