-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Automatically Reminder Service #192
base: development
Are you sure you want to change the base?
Implement Automatically Reminder Service #192
Conversation
- Introduced MonthlyReminder entity and ReminderStatus enum - Implemented ReminderCronService for scheduled reminder processing - Updated Mentee entity to include reminders relationship - Enhanced init-db.sh to check for existing data before seeding - Added postgresql-client installation in Dockerfile - Updated docker-compose.yml for SMTP_PASSWORD environment variable - Added getReminderEmailContent utility function for email content generation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use an environmental variable to enable/disable this service
src/services/cron/reminder.cron.ts
Outdated
public start(): void { | ||
// Run at 1 AM every day | ||
this.cronJob = cron.schedule( | ||
'*/2 * * * *', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use an env var to configure this.
Hi @mayura-andrew is there an update on this PR? |
Yes, I have I'll open it today. |
Purpose
The purpose of this PR is to fix #176
Goals
Implemented automatically monthly reminder message using CRON
Approach
Created an separate new service to send automatically reminder with cron.
Screenshots
Checklist
Related PRs
Test environment
Learning