Skip to content

Commit

Permalink
fix: add event description to webhook res
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Mar 29, 2023
1 parent c908ac9 commit 1613693
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/utils/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ func RegisterEvent(ctx context.Context, eventName string, authRecipe string, use
}

reqBody := map[string]interface{}{
"webhook_id": webhook.ID,
"event_name": eventName,
"user": userMap,
"webhook_id": webhook.ID,
"event_name": eventName,
"event_description": webhook.EventDescription,
"user": userMap,
}

if eventName == constants.UserLoginWebhookEvent || eventName == constants.UserSignUpWebhookEvent {
Expand Down

0 comments on commit 1613693

Please sign in to comment.