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(
262262 const data = executeOperation ( exeContext , initialResultRecord ) ;
263263 if ( isPromise ( data ) ) {
264264 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 ) ,
279269 ) ;
280270 }
281271
282- exeContext . executionController . abort ( ) ;
283272 return incrementalPublisher . buildDataResponse ( initialResultRecord , data ) ;
284273 } catch ( error ) {
285- exeContext . executionController . abort ( ) ;
286-
287274 return incrementalPublisher . buildErrorResponse ( initialResultRecord , error ) ;
288275 }
289276}
You can’t perform that action at this time.
0 commit comments