Skip to content

Commit 2799a70

Browse files
authored
Fix SDK bug in the deployTrigger method (#16934)
The `deployTrigger` method was ignoring the `workflowId` argument when calling the API, which prevented the new trigger from emitting events to the target workflow.
1 parent 38dac8f commit 2799a70

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

packages/sdk/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# Changelog
44

5+
## [1.6.5] - 2025-06-02
6+
7+
### Changed
8+
9+
- Fix the `deployTrigger` method so that it sends the workflow ID to the API
10+
511
## [1.6.4] - 2025-05-30
612

713
### Added

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pipedream/sdk",
33
"type": "module",
4-
"version": "1.6.4",
4+
"version": "1.6.5",
55
"description": "Pipedream SDK",
66
"main": "./dist/server.js",
77
"module": "./dist/server.js",

packages/sdk/src/shared/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ export abstract class BaseClient {
14811481
id,
14821482
configured_props: opts.configuredProps,
14831483
dynamic_props_id: opts.dynamicPropsId,
1484+
workflow_id: opts.workflowId,
14841485
webhook_url: opts.webhookUrl,
14851486
};
14861487
return this.makeConnectRequest<DeployTriggerResponse>("/triggers/deploy", {

pnpm-lock.yaml

Lines changed: 10 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)