Skip to content

Commit 02cb21f

Browse files
Webhook works
1 parent cf2767e commit 02cb21f

File tree

5 files changed

+216
-131
lines changed

5 files changed

+216
-131
lines changed

packages/examples/workflow/src/workflows/user-signup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export async function handleUserSignup(email: string) {
1212
const webhook = createWebhook();
1313
await sendOnboardingEmail(user, webhook.url);
1414

15+
await webhook;
16+
1517
return { userId: user.id, status: "onboarded" };
1618
}
1719

packages/libs/world/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"dependencies": {
5151
"@restatedev/common": "workspace:*",
5252
"@workflow/world": "catalog:",
53+
"@workflow/errors": "catalog:",
5354
"@restatedev/restate-sdk-clients": "catalog:",
5455
"@restatedev/restate-sdk-zod": "catalog:",
5556
"@vercel/queue": "catalog:",

0 commit comments

Comments
 (0)