We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dc2b7d commit 80e5bc6Copy full SHA for 80e5bc6
.changeset/tasty-kangaroos-bake.md
@@ -0,0 +1,7 @@
1
+---
2
+"wrangler": patch
3
4
+
5
+Fix params serialization when send the trigger workflow API
6
7
+Previously, wrangler did not parse the params sending it as a string to workflow's services.
packages/wrangler/src/workflows/commands/trigger.ts
@@ -54,7 +54,7 @@ defineCommand({
54
headers: { "Content-Type": "application/json" },
55
body: JSON.stringify({
56
instance_id: args.id,
57
- params: args.params.length != 0 ? args.params : undefined,
+ params: args.params.length != 0 ? JSON.parse(args.params) : undefined,
58
}),
59
}
60
);
0 commit comments