File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { SchemaComposer , ObjectTypeComposerFieldConfigAsObjectDefinition } from 'graphql-compose' ;
2
- import { getJobTC } from '../types/job/Job' ;
3
2
import { getQueue } from '../helpers' ;
4
3
import { Options } from '../definitions' ;
5
4
import { getAsyncIterator } from '../helpers' ;
@@ -13,7 +12,6 @@ export function createOnJobRemovedFC(
13
12
type : sc . createObjectTC ( {
14
13
name : 'OnJobRemovedPayload' ,
15
14
fields : {
16
- job : getJobTC ( sc , opts ) ,
17
15
queue : getQueueTC ( sc , opts ) . NonNull ,
18
16
jobId : 'String!' ,
19
17
queueName : 'String!' ,
@@ -29,9 +27,7 @@ export function createOnJobRemovedFC(
29
27
} ,
30
28
resolve : async ( { jobId, prev } , { prefix, queueName } ) => {
31
29
const queue = getQueue ( prefix , queueName , opts ) ;
32
- const job = await queue . getJob ( jobId ) ;
33
30
return {
34
- job,
35
31
queue,
36
32
jobId,
37
33
queueName,
You can’t perform that action at this time.
0 commit comments