Skip to content

Commit

Permalink
fix(job): added nullable/optional properties
Browse files Browse the repository at this point in the history
Marked finishedOn and processedOn as nullable/optional
  • Loading branch information
onehorsetown authored and manast committed Mar 17, 2020
1 parent acf3159 commit cef134f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/classes/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export interface JobJson {
opts: string;
progress: number | object;
attemptsMade: number;
finishedOn: number;
processedOn: number;
finishedOn?: number;
processedOn?: number;
timestamp: number;
failedReason: string;
stacktrace: string;
Expand All @@ -31,8 +31,8 @@ export class Job<T = any, R = any> {

attemptsMade = 0;
failedReason: string;
finishedOn: number;
processedOn: number;
finishedOn?: number;
processedOn?: number;

private toKey: (type: string) => string;

Expand Down

0 comments on commit cef134f

Please sign in to comment.