Skip to content
Snippets Groups Projects
Commit d5991b54 authored by Daniel Sandu's avatar Daniel Sandu
Browse files

fix(notifications): added title param to ctaLink button

parent f5b45881
No related branches found
No related tags found
3 merge requests!196S25 - EiC submit revision,!189S25,!179Hin 1117 email manuscript title
...@@ -115,6 +115,8 @@ module.exports = { ...@@ -115,6 +115,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',
...@@ -134,6 +136,7 @@ module.exports = { ...@@ -134,6 +136,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