77 CONNECT_NOTIFICATION_EVENT ,
88 COPILOT_OPPORTUNITY_STATUS ,
99 COPILOT_REQUEST_STATUS ,
10- TEMPLATE_IDS , USER_ROLE ,
10+ TEMPLATE_IDS ,
11+ USER_ROLE ,
1112} from '../../constants' ;
1213import util from '../../util' ;
1314import { createEvent } from '../../services/busApi' ;
@@ -26,8 +27,6 @@ module.exports = async (req, data, existingTransaction) => {
2627
2728 return resolveTransaction ( existingTransaction , async ( transaction ) => {
2829 try {
29- req . log . debug ( 'approveRequest: finding project' , { projectId } ) ;
30-
3130 const existingProject = await models . Project . findOne ( {
3231 where : { id : projectId , deletedAt : { $eq : null } } ,
3332 transaction,
@@ -40,7 +39,6 @@ module.exports = async (req, data, existingTransaction) => {
4039 }
4140
4241 const copilotRequest = await models . CopilotRequest . findByPk ( copilotRequestId , { transaction } ) ;
43- req . log . debug ( 'approveRequest: found copilot request' , { copilotRequestId : copilotRequest . id } ) ;
4442
4543 if ( ! copilotRequest ) {
4644 const err = new Error ( `no active copilot request found for copilot request id ${ copilotRequestId } ` ) ;
@@ -49,7 +47,6 @@ module.exports = async (req, data, existingTransaction) => {
4947 }
5048
5149 await copilotRequest . update ( { status : COPILOT_REQUEST_STATUS . APPROVED } , { transaction } ) ;
52- req . log . debug ( 'Copilot request status updated to APPROVED' , { copilotRequestId } ) ;
5350
5451 const existingOpportunity = await models . CopilotOpportunity . findOne ( {
5552 where : {
@@ -72,7 +69,6 @@ module.exports = async (req, data, existingTransaction) => {
7269 // Send notifications
7370 try {
7471 const roles = await util . getRolesByRoleName ( USER_ROLE . TC_COPILOT , req . log , req . id ) ;
75- req . log . debug ( 'Roles fetched' , { roles } ) ;
7672
7773 const { subjects = [ ] } = await util . getRoleInfo ( roles [ 0 ] , req . log , req . id ) ;
7874 const emailEventType = CONNECT_NOTIFICATION_EVENT . EXTERNAL_ACTION_EMAIL ;
0 commit comments