Skip to content

Commit

Permalink
fix: change job delayed field type from Int to String
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Dorofeev authored and nodkz committed Aug 26, 2021
1 parent 57abf72 commit ad9afe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/job/Job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function getJobTC(sc: SchemaComposer<any>, opts: Options): ObjectTypeComp
name: 'String',
data: jobDataTC,
progress: 'Int',
delay: 'Int',
delay: 'String',
timestamp: {
type: 'Date',
resolve: async (job: Job) => (job.timestamp ? job.timestamp : null),
Expand All @@ -29,7 +29,7 @@ export function getJobTC(sc: SchemaComposer<any>, opts: Options): ObjectTypeComp
name: `${typePrefix}JobOptionsOutput`,
fields: {
priority: 'Int',
delay: 'Int',
delay: 'String',
attempts: 'Int',
repeat: createRepeatOptionsTC(sc, opts),
backoff: 'JSON', // | TODO: BackoffOptions
Expand Down

0 comments on commit ad9afe6

Please sign in to comment.