Skip to content

Commit 30a90f4

Browse files
intproBoris Dorofeev
and
Boris Dorofeev
authored
fix: job name not necessarily (#12)
* fix: job name not necessarily * feat: additional options to repeat Co-authored-by: Boris Dorofeev <[email protected]>
1 parent 6c3a7ec commit 30a90f4

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

src/mutation/jobAddCron.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export function createJobAddCronFC(
4545
limit: 'Int',
4646
cron: 'String!',
4747
startDate: 'Date',
48+
count: 'Int',
49+
prevMillis: 'Int',
50+
jobId: 'String',
4851
},
4952
}).NonNull,
5053
},

src/mutation/jobAddEvery.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ export function createJobAddEveryFC(
4444
endDate: 'Date',
4545
limit: 'Int',
4646
every: 'Int!',
47+
count: 'Int',
48+
prevMillis: 'Int',
49+
jobId: 'String',
4750
},
4851
}).NonNull,
4952
},

src/types/job/Job.opts.repeat.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ export function createRepeatOptionsTC(sc: SchemaComposer<any>, opts: Options) {
1010
tz: 'String',
1111
endDate: 'Date',
1212
limit: 'Int',
13+
count: 'Int',
14+
prevMillis: 'Int',
15+
jobId: 'String',
1316
},
1417
});
1518

@@ -22,6 +25,9 @@ export function createRepeatOptionsTC(sc: SchemaComposer<any>, opts: Options) {
2225
limit: 'Int',
2326
cron: 'String',
2427
startDate: 'Date',
28+
count: 'Int',
29+
prevMillis: 'Int',
30+
jobId: 'String',
2531
},
2632
});
2733

@@ -33,6 +39,9 @@ export function createRepeatOptionsTC(sc: SchemaComposer<any>, opts: Options) {
3339
endDate: 'Date',
3440
limit: 'Int',
3541
every: 'String',
42+
count: 'Int',
43+
prevMillis: 'Int',
44+
jobId: 'String',
3645
},
3746
});
3847

src/types/job/Job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function getJobTC(sc: SchemaComposer<any>, opts: Options) {
1010
return sc.getOrCreateOTC(`${typePrefix}Job`, (etc) => {
1111
etc.addFields({
1212
id: 'String!',
13-
name: 'String!',
13+
name: 'String',
1414
data: jobDataTC,
1515
progress: 'Int',
1616
delay: 'Int',

0 commit comments

Comments
 (0)