File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
src/routes/copilotOpportunityApply Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,7 @@ module.exports = [
71
71
const pmRole = await util . getRolesByRoleName ( USER_ROLE . PROJECT_MANAGER , req . log , req . id ) ;
72
72
const { subjects = [ ] } = await util . getRoleInfo ( pmRole [ 0 ] , req . log , req . id ) ;
73
73
74
- req . log . debug ( subjects , 'all manager subjects' ) ;
75
-
76
74
const creator = await util . getMemberDetailsByUserIds ( [ opportunity . createdBy ] , req . log , req . id ) ;
77
- req . log . debug ( creator , 'creator' , opportunity . createdBy ) ;
78
75
79
76
const listOfSubjects = subjects ;
80
77
if ( creator && creator [ 0 ] && creator [ 0 ] . email ) {
@@ -85,16 +82,13 @@ module.exports = [
85
82
86
83
return item . email . toLowerCase ( ) === creator [ 0 ] . email . toLowerCase ( ) ;
87
84
} ) ;
88
- req . log . debug ( isCreatorPartofSubjects , 'isCreatorPartofSubjects' ) ;
89
85
if ( ! isCreatorPartofSubjects ) {
90
86
listOfSubjects . push ( {
91
87
email : creator [ 0 ] . email ,
92
88
handle : creator [ 0 ] . handle ,
93
89
} ) ;
94
90
}
95
91
}
96
-
97
- req . log . debug ( listOfSubjects , 'final list of subjects' ) ;
98
92
99
93
const emailEventType = CONNECT_NOTIFICATION_EVENT . EXTERNAL_ACTION_EMAIL ;
100
94
const copilotPortalUrl = config . get ( 'copilotPortalUrl' ) ;
You can’t perform that action at this time.
0 commit comments