Skip to content

Commit ad9afe6

Browse files
Boris Dorofeevnodkz
Boris Dorofeev
authored andcommitted
fix: change job delayed field type from Int to String
1 parent 57abf72 commit ad9afe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/job/Job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function getJobTC(sc: SchemaComposer<any>, opts: Options): ObjectTypeComp
1414
name: 'String',
1515
data: jobDataTC,
1616
progress: 'Int',
17-
delay: 'Int',
17+
delay: 'String',
1818
timestamp: {
1919
type: 'Date',
2020
resolve: async (job: Job) => (job.timestamp ? job.timestamp : null),
@@ -29,7 +29,7 @@ export function getJobTC(sc: SchemaComposer<any>, opts: Options): ObjectTypeComp
2929
name: `${typePrefix}JobOptionsOutput`,
3030
fields: {
3131
priority: 'Int',
32-
delay: 'Int',
32+
delay: 'String',
3333
attempts: 'Int',
3434
repeat: createRepeatOptionsTC(sc, opts),
3535
backoff: 'JSON', // | TODO: BackoffOptions

0 commit comments

Comments
 (0)