Skip to content

Commit

Permalink
Merge pull request #68 from andela/bg-fixing-approving-requests
Browse files Browse the repository at this point in the history
fixing the email sent for approvals and rejections of travel requests…
  • Loading branch information
Bahatiroben authored Nov 19, 2019
2 parents 8813b88 + f00c902 commit 0c9b594
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/controllers/requestController.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ class Requests {
to: requester.userEmail,
subject: 'Request approved'
});
const msg = ApprovalEmail.rejectAcceptRequestTemplate(
'Your travel request has been approved. Have a good time',
requester,
unsubscribeUrl
);
const msg = ApprovalEmail.rejectAcceptRequestTemplate(reason, requester, unsubscribeUrl);
await email.sendmail({ ...header, ...msg });
}
return Response.customResponse(res, 200, 'Request approved successfully', { requestId });
Expand Down

0 comments on commit 0c9b594

Please sign in to comment.