Skip to content

Commit

Permalink
refactor: update getUnmatchedMenteesFor45Days method to correctly cal…
Browse files Browse the repository at this point in the history
…culate the date
  • Loading branch information
helloanil committed Jul 4, 2024
1 parent f27b18f commit ef1b7a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class ReminderEmailsService {

async getUnmatchedMenteesFor45Days() {
const approvedDate = new Date()
approvedDate.setDate(approvedDate.getDate() - 44)
approvedDate.setDate(approvedDate.getDate() - 45)

// 1st Step: Get all mentees that have been approved 45 days ago
const approvedMenteesFrom45DaysAgo = await this.conProfilesService.findAll({
Expand Down

0 comments on commit ef1b7a4

Please sign in to comment.