Skip to content

Commit

Permalink
Update RejectDialogService.js
Browse files Browse the repository at this point in the history
  • Loading branch information
barbosamaatheus authored May 26, 2020
1 parent 82bf2ec commit a9a1719
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/RejectDialogService.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ module.exports = async (req, res) => {
.send();

const index = dialogue.approvals.indexOf(userId);
if (index > -1) dialogue.approvals = dialogue.approvals.splice(index, 1);
dialogue.approvals = dialogue.approvals.splice(index, 1);
}

if (index > -1) dialogue.approvals = dialogue.approvals.splice(index, 1);

if (dialogue.disapprovals.includes(userId))
return response
Expand Down

0 comments on commit a9a1719

Please sign in to comment.