Skip to content
Snippets Groups Projects
Commit 0d609091 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Merge branch 'HIN-1117-email-manuscript-title' into 'develop'

Hin 1117 email manuscript title

See merge request !179
parents e8b6b530 22d8811e
No related branches found
No related tags found
3 merge requests!196S25 - EiC submit revision,!189S25,!179Hin 1117 email manuscript title
...@@ -18,6 +18,8 @@ module.exports = { ...@@ -18,6 +18,8 @@ module.exports = {
async sendEQSEmail({ baseUrl, fragment, UserModel, collection }) { async sendEQSEmail({ baseUrl, fragment, UserModel, collection }) {
const userHelper = new User({ UserModel }) const userHelper = new User({ UserModel })
const eicName = await userHelper.getEiCName() const eicName = await userHelper.getEiCName()
const fragmentHelper = new Fragment({ fragment })
const { title } = await fragmentHelper.getFragmentData({})
const { paragraph, ...bodyProps } = getEmailCopy({ const { paragraph, ...bodyProps } = getEmailCopy({
emailType: 'eqs-manuscript-submitted', emailType: 'eqs-manuscript-submitted',
...@@ -37,6 +39,7 @@ module.exports = { ...@@ -37,6 +39,7 @@ module.exports = {
signatureName: eicName, signatureName: eicName,
signatureJournal: journalName, signatureJournal: journalName,
ctaLink: services.createUrl(baseUrl, config.get('eqs-decision.url'), { ctaLink: services.createUrl(baseUrl, config.get('eqs-decision.url'), {
title,
collectionId: collection.id, collectionId: collection.id,
customId: collection.customId, customId: collection.customId,
token: collection.technicalChecks.token, token: collection.technicalChecks.token,
......
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