Skip to content
Snippets Groups Projects
Commit f842ced7 authored by Tania Fecheta's avatar Tania Fecheta
Browse files

fix(notifications): remove comented code

parent d5af0669
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!204Hin 1232 send correct email to new author
const config = require('config')
const { get, isEmpty, tail } = require('lodash')
const { get, tail } = require('lodash')
const Email = require('@pubsweet/component-email-templating')
const {
......@@ -101,7 +101,7 @@ module.exports = {
if (adminOwner) {
userEmailData = tail(userEmailData)
}
userEmailData.forEach(({ author, paragraph, bodyProps }) => {
const email = new Email({
type: 'user',
......@@ -149,7 +149,6 @@ module.exports = {
})
email.content.ctaText = 'CONFIRM ACCOUNT'
}
// if (isEmpty(adminOwner)) return email.sendEmail()
return email.sendEmail()
})
},
......
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