Skip to content

Commit

Permalink
Fix webhook not creating/deleting user
Browse files Browse the repository at this point in the history
  • Loading branch information
sepal committed Oct 26, 2023
1 parent 6714853 commit 5741eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/api/user/webhook/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export async function POST(req: Request) {
if (!id) return new Response("Missing user id", { status: 400 });
switch (eventType) {
case "user.created":
createUser(id);
await createUser(id);
break;
case "user.deleted":
deleteUser(id);
await deleteUser(id);
break;
}

Expand Down

0 comments on commit 5741eb5

Please sign in to comment.