From ad9afe610f16d138118c97bbb77c71bca3a5f63b Mon Sep 17 00:00:00 2001 From: Boris Dorofeev Date: Thu, 26 Aug 2021 12:33:38 +0600 Subject: [PATCH] fix: change job delayed field type from Int to String --- src/types/job/Job.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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