-
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 Monthly Reminder Service #181
Implement Monthly Reminder Service #181
Conversation
Instead of directly passing individual fields to the updateProfile function, refactor the logic to use a single updateData object. This object contains the updated fields for the profile, such as primary_email, first_name, last_name, and image_url. This change improves code readability and maintainability. Related to sef-global#165
- Moved monthly checking service functions to a dedicated service file (monthlyChecking.service.ts). - Moved monthly checking controller functions to a dedicated controller file (monthlyChecking.controller.ts). - Updated import paths and references to reflect the new file structure. - Improved code organization and maintainability by separating concerns.
Monthly checking feature
…mpts, introduce new mentee reminders logic
… for processing and scheduling reminders, and enhance reminder service logic
… status enums, and implement dynamic next reminder date calculation
@@ -56,6 +56,7 @@ | |||
"@types/jsonwebtoken": "^9.0.2", | |||
"@types/multer": "^1.4.11", | |||
"@types/node": "^20.1.4", | |||
"@types/node-cron": "^3.0.11", |
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.
Remove this
"@types/node-cron": "^3.0.11", |
|
||
const today = new Date() | ||
const todayDateString = today.toDateString() | ||
console.log(todayDateString) |
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.
console.log(todayDateString) |
}) | ||
.getMany() | ||
|
||
console.log(newMentees) |
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.
console.log(newMentees) |
@@ -8,5 +8,5 @@ | |||
"experimentalDecorators": true, | |||
"emitDecoratorMetadata": true | |||
}, | |||
"include": ["src/**/*.ts", "test/", "jest.config.ts","mocks.ts"] | |||
"include": ["src/**/*.ts", "test/", "jest.config.ts","mocks.ts", "src/migrations/1730893653817-MonthlyChecking.ts"] |
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.
Don't include this.
Purpose
The purpose of this PR is to fix #176
This issue involves enhancing the
EmailReminderService
to ensure that email reminders are scheduled and processed correctly, with proper handling of retries and failures.Goals
Approach
Screenshots
Checklist
Related PRs
Test environment
Learning