Use correct overload param when invoking a job outside of a run (fixes #802)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/sdk": patch
|
||||
---
|
||||
|
||||
Use correct overload param when invoking a job outside of a run #802
|
||||
@@ -185,8 +185,8 @@ export class Job<
|
||||
typeof this.options.concurrencyLimit === "number"
|
||||
? this.options.concurrencyLimit
|
||||
: typeof this.options.concurrencyLimit === "object"
|
||||
? { id: this.options.concurrencyLimit.id, limit: this.options.concurrencyLimit.limit }
|
||||
: undefined,
|
||||
? { id: this.options.concurrencyLimit.id, limit: this.options.concurrencyLimit.limit }
|
||||
: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ export class Job<
|
||||
throw new Error("Cannot invoke a job from within a run without a cacheKey.");
|
||||
}
|
||||
|
||||
return await triggerClient.invokeJob(this.id, param1, param3);
|
||||
return await triggerClient.invokeJob(this.id, param1, param2);
|
||||
}
|
||||
|
||||
async invokeAndWaitForCompletion(
|
||||
|
||||
Reference in New Issue
Block a user