Skip to content

Commit

Permalink
Merge pull request #693 from Giveth/hotfix_revoking_emails_set_limit
Browse files Browse the repository at this point in the history
Hotfix revoking emails set limit
  • Loading branch information
CarlosQ96 authored Oct 18, 2022
2 parents 5123d77 + a67a95d commit 10e361e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/cronJobs/checkProjectVerificationStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,15 @@ const remindUpdatesOrRevokeVerification = async (project: Project) => {
} else if (
// After reminder at 60/75 days
project.updatedAt <= maxDaysForSendingUpdateWarning &&
project.updatedAt > maxDaysForSendingUpdateLastWarning
project.updatedAt > maxDaysForSendingUpdateLastWarning &&
project.verificationStatus !== RevokeSteps.Warning
) {
project.verificationStatus = RevokeSteps.Warning;
} else if (
// First email for reminding to add an update
project.updatedAt <= maxDaysForSendingUpdateReminder &&
project.updatedAt > maxDaysForSendingUpdateWarning
project.updatedAt > maxDaysForSendingUpdateWarning &&
project.verificationStatus !== RevokeSteps.Reminder
) {
project.verificationStatus = RevokeSteps.Reminder;
}
Expand Down

0 comments on commit 10e361e

Please sign in to comment.