Skip to content
Snippets Groups Projects
Commit f485f247 authored by Mihail Hagiu's avatar Mihail Hagiu
Browse files

feat(ReviewerReminder): Readded old email

parent fbeb1c85
No related branches found
No related tags found
3 merge requests!233S26 updates,!230S26 Updates,!228feat(AutomaticReminder): ReviewerResendInvitationEmail
This commit is part of merge request !228. Comments created here will be created in the context of that merge request.
...@@ -26,13 +26,21 @@ const getEmailCopy = ({ ...@@ -26,13 +26,21 @@ const getEmailCopy = ({
<a style="color:#007e92; text-decoration: none;" href="https://www.hindawi.com/ethics/#coi">https://www.hindawi.com/ethics/#coi</a>.` <a style="color:#007e92; text-decoration: none;" href="https://www.hindawi.com/ethics/#coi">https://www.hindawi.com/ethics/#coi</a>.`
break break
case 'reviewer-resend-invitation': case 'reviewer-resend-invitation':
resend = true
upperContent = `On ${expectedDate} I invited you to review ${titleText}, submitted to ${journalName} for consideration.<br/><br/>
I would be grateful if you would agree to review the manuscript and let me know whether you feel
it is suitable for publication. If you are unable to review this manuscript please decline to review. More details are available by clicking the link below.`
lowerContent = `Thank you in advance for taking the time to consider this invitation, as it would not be possible for us to run the journal without the help of our reviewers.<br/><br/>
I am looking forward to hearing from you.`
break
case 'reviewer-resend-invitation-first-reminder':
resend = true resend = true
upperContent = `On ${expectedDate} I invited you to review ${titleText}, submitted for possible publication in ${journalName}.<br/><br/> upperContent = `On ${expectedDate} I invited you to review ${titleText}, submitted for possible publication in ${journalName}.<br/><br/>
We'd be grateful if you could submit a decision on whether or not you will be able to review this manuscript using the link below.` We'd be grateful if you could submit a decision on whether or not you will be able to review this manuscript using the link below.`
lowerContent = `Thank you in advance for your help with the evaluation of this manuscript.<br/><br/> lowerContent = `Thank you in advance for your help with the evaluation of this manuscript.<br/><br/>
We look forward to hearing from you.` We look forward to hearing from you.`
break break
case 'reviewer-resend-invitation-second': case 'reviewer-resend-invitation-second-reminder':
resend = true resend = true
upperContent = `We sent you a request to review ${titleText}; however we have not yet received your decision. upperContent = `We sent you a request to review ${titleText}; however we have not yet received your decision.
We would appreciate it if you could visit the following link to let us know whether or not you will be able to review this manuscript:` We would appreciate it if you could visit the following link to let us know whether or not you will be able to review this manuscript:`
......
...@@ -21,8 +21,12 @@ const scheduleReminderJob = async ({ ...@@ -21,8 +21,12 @@ const scheduleReminderJob = async ({
const queue = `reminders-${userId}-${invitationId}` const queue = `reminders-${userId}-${invitationId}`
let emailType = `reviewer-resend-invitation` const terminations = {
if (days === 7 || days === 13) emailType += '-second' 4: 'first-reminder',
7: 'second-reminder',
13: 'second-reminder',
}
const emailType = `reviewer-resend-invitation-${terminations[days]}`
const { paragraph, ...bodyProps } = getEmailCopy({ const { paragraph, ...bodyProps } = getEmailCopy({
emailType, emailType,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment