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

fix(withEditorialDecision): Changed line

parent 5ad36231
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.
...@@ -117,9 +117,9 @@ module.exports = { ...@@ -117,9 +117,9 @@ module.exports = {
await email.sendEmail() await email.sendEmail()
forOwn(daysList, (day, order) => forOwn(daysList, (days, order) =>
scheduleReminderJob({ scheduleReminderJob({
day, days,
order, order,
email, email,
timeUnit, timeUnit,
......
...@@ -6,19 +6,18 @@ const { getEmailCopy } = require('../emails/emailCopy') ...@@ -6,19 +6,18 @@ const { getEmailCopy } = require('../emails/emailCopy')
const Email = require('@pubsweet/component-email-templating') const Email = require('@pubsweet/component-email-templating')
const scheduleReminderJob = async ({ const scheduleReminderJob = async ({
day, days,
email, email,
order, order,
userId, userId,
subject, subject,
timeUnit, timeUnit,
daysList,
titleText, titleText,
invitationId, invitationId,
expectedDate, expectedDate,
}) => { }) => {
const executionDate = moment() const executionDate = moment()
.add(day, timeUnit) .add(days, timeUnit)
.toISOString() .toISOString()
const queue = `reminders-${userId}-${invitationId}` const queue = `reminders-${userId}-${invitationId}`
...@@ -33,7 +32,7 @@ const scheduleReminderJob = async ({ ...@@ -33,7 +32,7 @@ const scheduleReminderJob = async ({
email.content.subject = subject email.content.subject = subject
const params = { const params = {
day, days,
timeUnit, timeUnit,
executionDate, executionDate,
emailProps: cloneDeep(email), emailProps: cloneDeep(email),
......
...@@ -20,7 +20,9 @@ export default compose( ...@@ -20,7 +20,9 @@ export default compose(
hideModal() hideModal()
setSuccess( setSuccess(
decision.step === 'eqs' decision.step === 'eqs'
? `Manuscript accepted. Thank you for your technical check!` ? `Manuscript ${
decision.agree ? 'accepted' : 'declined'
}. Thank you for your technical check!`
: 'Manuscript decision submitted. Thank you!', : 'Manuscript decision submitted. Thank you!',
) )
}) })
......
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