@knocklabs/node 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json
CHANGED
|
@@ -16,8 +16,8 @@ class Workflows {
|
|
|
16
16
|
}
|
|
17
17
|
trigger(workflowKey, { actor, recipients, cancellationKey, tenant, data: notifyData, }) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
if (!workflowKey && !
|
|
20
|
-
throw new Error(`Incomplete arguments. At a minimum you need to specify 'workflowKey'
|
|
19
|
+
if (!workflowKey && !recipients) {
|
|
20
|
+
throw new Error(`Incomplete arguments. At a minimum you need to specify 'workflowKey' and 'recipients'.`);
|
|
21
21
|
}
|
|
22
22
|
const { data } = yield this.knock.post(`/v1/workflows/${workflowKey}/trigger`, {
|
|
23
23
|
actor,
|