Skip to content

Commit

Permalink
Merge pull request #740 from bounswe/be-738/remove_throws
Browse files Browse the repository at this point in the history
be-738: Await error fixed
  • Loading branch information
Alputer authored Dec 24, 2023
2 parents 6a3d4ac + 6035ffa commit a1c85e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/backend/src/comment/comment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class CommentService {
}

async remove(pollID: string, userID: string) {
const poll = this.pollService.findPollById(pollID);
const poll = await this.pollService.findPollById(pollID);

if (!poll) {
throw new ConflictException('There is no poll with this id');
Expand Down

0 comments on commit a1c85e1

Please sign in to comment.