Closed helloanil closed 1 week ago
The changes enhance the ReminderEmailsController
and ReminderEmailsService
to send two types of reminder emails to mentees applying to mentors. The implementation includes adjustments to email content and adds functionality for sending second reminders with Bcc addresses.
Files | Change Summaries |
---|---|
.../reminder-emails.controller.ts |
Updated sendMenteeApplyToMentorReminders method to handle two types of reminder emails and include a flag for second reminders. |
.../reminder-emails.service.ts |
Added imports (RediLocation , difference ). Modified methods to handle mentorship matches, find approved mentees without matches, and send Bcc emails. |
sequenceDiagram
participant Controller as ReminderEmailsController
participant Service as ReminderEmailsService
participant Email as EmailService
Controller->>Service: sendMenteeApplyToMentorReminders()
loop Check mentees
Service->>Service: getApprovedMenteesWithNoMentorApplicationsByDays()
end
alt First Reminder
Service->>Email: sendApplyToMentorReminder(mentee, firstReminder)
else Second Reminder
Service->>Email: sendApplyToMentorReminder(mentee, secondReminder, bccAddresses)
end
In the realm of mentors far and wide,
A bunny sends emails with great pride.
For every mentee, a gentle nudge,
Reminders sent with a caring touch.
First a whisper, then a louder cheer,
To find their guide and conquer fear! 🐰📧✨
[!WARNING]
Review ran into problems
Problems (1)
* Git: Failed to clone repository. Please contact CodeRabbit support.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What Github issue does this PR relate to? Insert link.
712
What should the reviewer know?
This PR adds the Priority 2 reminders for Connect Platform, which are:
Reminder to Approved Mentees Without Mentor Application to Apply: Priority 2
Reminder (7 days after profile approval)
Reminder - Cyberspace Mentees (7 days after profile approval)
Reminder (14 days after profile approval)
Reminder - Cyberspace Mentees (14 days after profile approval)
Screenshots
2 Approved users from 7 days ago:![CleanShot 2024-06-25 at 00 07 23](https://github.com/talent-connect/connect/assets/6314657/ed172662-6647-4e20-b826-ce554a0fcf68)
One of them has a mentorship application:![CleanShot 2024-06-25 at 00 08 32](https://github.com/talent-connect/connect/assets/6314657/07a7b04b-841e-418d-8641-a76b0e1789a7)
The other one doesn't have any application or ongoing mentorship:![CleanShot 2024-06-25 at 00 10 03](https://github.com/talent-connect/connect/assets/6314657/236e6298-759c-48f7-903c-fdbc703580d1)
The one that doesn't have any applications or ongoing mentorship, receives the reminder:![CleanShot 2024-06-25 at 00 11 03](https://github.com/talent-connect/connect/assets/6314657/7c7d8142-5b22-4041-aa5b-bf8c7f95534a)
Summary by CodeRabbit
New Features
Improvements
Bug Fixes