Skip to content

Commit

Permalink
fix: Incorrect type of CheckFmeJobStatus jobId input
Browse files Browse the repository at this point in the history
  • Loading branch information
rcooney committed Dec 16, 2020
1 parent 6a80bb2 commit 5a283d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/activities/CheckFmeJobStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface CheckFmeJobStatusInputs {
* @description The ID of the FME job to check the status of.
* @required
*/
jobId: string;
jobId: number;
}

/** An interface that defines the outputs of the activity. */
Expand Down Expand Up @@ -84,7 +84,7 @@ export class CheckFmeJobStatus implements IActivityHandler {
if (!service) {
throw new Error("service is required");
}
if (!jobId) {
if (jobId === undefined || jobId === null) {
throw new Error("jobId is required");
}

Expand Down

0 comments on commit 5a283d6

Please sign in to comment.