@@ -173,7 +173,6 @@ module.exports = [
173
173
transaction : t ,
174
174
} ) ;
175
175
} else if ( source === INVITE_SOURCE . WORK_MANAGER ) {
176
- req . log . info ( "cancelling all existing requests" , source ) ;
177
176
const allCopilotRequestsByProjectId = await models . CopilotRequest . findAll ( {
178
177
where : {
179
178
projectId : invite . projectId ,
@@ -182,7 +181,6 @@ module.exports = [
182
181
} ) ;
183
182
184
183
const requestIds = allCopilotRequestsByProjectId . map ( item => item . id ) ;
185
- req . log . info ( "requestIds" , requestIds ) ;
186
184
187
185
await models . CopilotRequest . update ( {
188
186
status : COPILOT_REQUEST_STATUS . CANCELED ,
@@ -195,8 +193,6 @@ module.exports = [
195
193
transaction : t ,
196
194
} ) ;
197
195
198
- req . log . info ( "updated copilot request" ) ;
199
-
200
196
const allCopilotOpportunityByRequestIds = await models . CopilotOpportunity . findAll ( {
201
197
where : {
202
198
copilotRequestId : {
@@ -206,8 +202,6 @@ module.exports = [
206
202
transaction : t ,
207
203
} ) ;
208
204
209
- req . log . info ( "allCopilotOpportunityByRequestIds" , allCopilotOpportunityByRequestIds . length ) ;
210
-
211
205
await models . CopilotOpportunity . update ( {
212
206
status : COPILOT_OPPORTUNITY_STATUS . CANCELED ,
213
207
} , {
@@ -219,8 +213,6 @@ module.exports = [
219
213
transaction : t ,
220
214
} ) ;
221
215
222
- req . log . info ( "updated copilot opportunity" ) ;
223
-
224
216
await models . CopilotApplication . update ( {
225
217
status : COPILOT_APPLICATION_STATUS . CANCELED ,
226
218
} , {
@@ -231,8 +223,6 @@ module.exports = [
231
223
} ,
232
224
transaction : t ,
233
225
} ) ;
234
-
235
- req . log . info ( "updated CopilotApplication" ) ;
236
226
}
237
227
238
228
await t . commit ( ) ;
0 commit comments