File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -262,28 +262,15 @@ function executeImpl(
262
262
const data = executeOperation ( exeContext , initialResultRecord ) ;
263
263
if ( isPromise ( data ) ) {
264
264
return data . then (
265
- ( resolved ) => {
266
- exeContext . executionController . abort ( ) ;
267
- return incrementalPublisher . buildDataResponse (
268
- initialResultRecord ,
269
- resolved ,
270
- ) ;
271
- } ,
272
- ( error ) => {
273
- exeContext . executionController . abort ( ) ;
274
- return incrementalPublisher . buildErrorResponse (
275
- initialResultRecord ,
276
- error ,
277
- ) ;
278
- } ,
265
+ ( resolved ) =>
266
+ incrementalPublisher . buildDataResponse ( initialResultRecord , resolved ) ,
267
+ ( error ) =>
268
+ incrementalPublisher . buildErrorResponse ( initialResultRecord , error ) ,
279
269
) ;
280
270
}
281
271
282
- exeContext . executionController . abort ( ) ;
283
272
return incrementalPublisher . buildDataResponse ( initialResultRecord , data ) ;
284
273
} catch ( error ) {
285
- exeContext . executionController . abort ( ) ;
286
-
287
274
return incrementalPublisher . buildErrorResponse ( initialResultRecord , error ) ;
288
275
}
289
276
}
You can’t perform that action at this time.
0 commit comments