Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
7a87ca7c
Commit
7a87ca7c
authored
6 years ago
by
Sebastian Mihalache
Browse files
Options
Downloads
Patches
Plain Diff
fix(recommendations): send email to HE when rev publish
parent
a721cddd
No related branches found
No related tags found
3 merge requests
!58
Sprint #20 - Goal - Reviewers submit report
,
!57
HIN-974
,
!55
WIP: HIN-855 feat(reviewer-report): reviewer report form
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/component-manuscript-manager/src/routes/fragmentsRecommendations/notifications/notifications.js
+5
-3
5 additions, 3 deletions
...s/fragmentsRecommendations/notifications/notifications.js
with
5 additions
and
3 deletions
packages/component-manuscript-manager/src/routes/fragmentsRecommendations/notifications/notifications.js
+
5
−
3
View file @
7a87ca7c
...
@@ -74,10 +74,12 @@ module.exports = {
...
@@ -74,10 +74,12 @@ module.exports = {
// send HE emails when a review is submitted
// send HE emails when a review is submitted
// or when the EiC makes a recommendation after peer review
// or when the EiC makes a recommendation after peer review
if
(
if
(
(
isEditorInChief
||
recommendationType
===
'
review
'
)
&&
recommendationType
===
'
review
'
||
hasPeerReview
&&
(
isEditorInChief
&&
(
recommendation
!==
'
publish
'
||
hasEQA
)
hasPeerReview
&&
(
recommendation
!==
'
publish
'
||
hasEQA
))
)
{
)
{
const
handlingEditor
=
get
(
collection
,
'
handlingEditor
'
,
{})
const
handlingEditor
=
get
(
collection
,
'
handlingEditor
'
,
{})
const
heUser
=
await
UserModel
.
find
(
handlingEditor
.
id
)
const
heUser
=
await
UserModel
.
find
(
handlingEditor
.
id
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment