diff --git a/packages/component-helper-service/src/services/Email.js b/packages/component-helper-service/src/services/Email.js index 22d203fc1411f3aeda9136bd60ad52f7b1a4e663..d0d815780901df3201eb69f9e0192f6a7274ec9f 100644 --- a/packages/component-helper-service/src/services/Email.js +++ b/packages/component-helper-service/src/services/Email.js @@ -465,7 +465,8 @@ class Email { parsedFragment: { id, title }, authors: { submittingAuthor: { firstName = '', lastName = '' } }, } = this - const user = get(collection, 'handlingEditor', {}) + const handlingEditor = get(collection, 'handlingEditor', {}) + const user = await UserModel.find(handlingEditor.id) if (!get(user, 'notifications.email.user')) return const userHelper = new User({ UserModel }) @@ -481,7 +482,7 @@ class Email { collection, eicName: `${eic.firstName} ${eic.lastName}`, fragment: { id, authorName: `${firstName} ${lastName}`, title }, - handlingEditorName: user.name || '', + handlingEditorName: handlingEditor.name || '', }, }) }