Skip to content
Snippets Groups Projects
Commit de4add58 authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

feat(component-invite): fix email thank you

parent 20ad1e7f
No related branches found
No related tags found
1 merge request!10Sprint #12
...@@ -80,17 +80,18 @@ const setupReviewerDecisionEmailData = async ({ ...@@ -80,17 +80,18 @@ const setupReviewerDecisionEmailData = async ({
timestamp, timestamp,
}, },
}) })
await mailService.sendNotificationEmail({ if (agree)
toEmail: user.email, await mailService.sendNotificationEmail({
user, toEmail: user.email,
emailType: 'reviewer-thank-you', user,
meta: { emailType: 'reviewer-thank-you',
collection: { customId: collection.customId, id: collection.id }, meta: {
fragment: { id, title, authorName }, collection: { customId: collection.customId, id: collection.id },
handlingEditorName: collection.handlingEditor.name, fragment: { id, title, authorName },
baseUrl, handlingEditorName: collection.handlingEditor.name,
}, baseUrl,
}) },
})
} }
const setupReviewerUnassignEmail = async ({ const setupReviewerUnassignEmail = async ({
......
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