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