@@ -65,7 +65,7 @@ export function composeBull(
6565 const wrapMutation = composeFC ( sc , opts ) ( wrapMutationFC , wrapQueueArgs ) ;
6666 const wrapSubscription = composeFC ( sc , opts ) ( wrapQueueSubsArgs ) ;
6767
68- const data = {
68+ const data : ComposeBullResult = {
6969 QueueTC : getQueueTC ( sc , opts ) ,
7070 JobTC : getJobTC ( sc , opts ) ,
7171 queryFields : {
@@ -96,22 +96,19 @@ export function composeBull(
9696 jobMoveToDelayed : wrapMutation ( createJobMoveToDelayedFC ) ,
9797 queuePepUp : wrapMutation ( createQueuePepUpFC ) ,
9898 } ,
99- } as ComposeBullResult ;
100-
101- //if (opts?.redisEvents) {
102- data . subscriptionFields = {
103- onJobActive : wrapSubscription ( createOnJobActiveFC ) ,
104- onJobCompleted : wrapSubscription ( createOnJobCompletedFC ) ,
105- onJobDelayed : wrapSubscription ( createOnJobDelayedFC ) ,
106- onJobFailed : wrapSubscription ( createOnJobFailedFC ) ,
107- onJobProgress : wrapSubscription ( createOnJobProgressFC ) ,
108- onJobRemoved : wrapSubscription ( createOnJobRemovedFC ) ,
109- onJobStalled : wrapSubscription ( createOnJobStalledFC ) ,
110- onJobWaiting : wrapSubscription ( createOnJobWaitingFC ) ,
111- onQueuePaused : wrapSubscription ( createOnQueuePausedFC ) ,
112- onQueueResumed : wrapSubscription ( createOnQueueResumedFC ) ,
99+ subscriptionFields : {
100+ onJobActive : wrapSubscription ( createOnJobActiveFC ) ,
101+ onJobCompleted : wrapSubscription ( createOnJobCompletedFC ) ,
102+ onJobDelayed : wrapSubscription ( createOnJobDelayedFC ) ,
103+ onJobFailed : wrapSubscription ( createOnJobFailedFC ) ,
104+ onJobProgress : wrapSubscription ( createOnJobProgressFC ) ,
105+ onJobRemoved : wrapSubscription ( createOnJobRemovedFC ) ,
106+ onJobStalled : wrapSubscription ( createOnJobStalledFC ) ,
107+ onJobWaiting : wrapSubscription ( createOnJobWaitingFC ) ,
108+ onQueuePaused : wrapSubscription ( createOnQueuePausedFC ) ,
109+ onQueueResumed : wrapSubscription ( createOnQueueResumedFC ) ,
110+ } ,
113111 } ;
114- //}
115112
116113 return data ;
117114}
0 commit comments