diff --git a/src/types/job/Job.ts b/src/types/job/Job.ts index 6134495..a89af4a 100644 --- a/src/types/job/Job.ts +++ b/src/types/job/Job.ts @@ -14,7 +14,7 @@ export function getJobTC(sc: SchemaComposer, 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), @@ -29,7 +29,7 @@ export function getJobTC(sc: SchemaComposer, opts: Options): ObjectTypeComp name: `${typePrefix}JobOptionsOutput`, fields: { priority: 'Int', - delay: 'Int', + delay: 'String', attempts: 'Int', repeat: createRepeatOptionsTC(sc, opts), backoff: 'JSON', // | TODO: BackoffOptions