fix: add event description to webhook res

This commit is contained in:
Lakhan Samani 2023-03-29 07:31:07 +05:30
parent c908ac94da
commit 16136931a9

View File

@ -39,9 +39,10 @@ func RegisterEvent(ctx context.Context, eventName string, authRecipe string, use
} }
reqBody := map[string]interface{}{ reqBody := map[string]interface{}{
"webhook_id": webhook.ID, "webhook_id": webhook.ID,
"event_name": eventName, "event_name": eventName,
"user": userMap, "event_description": webhook.EventDescription,
"user": userMap,
} }
if eventName == constants.UserLoginWebhookEvent || eventName == constants.UserSignUpWebhookEvent { if eventName == constants.UserLoginWebhookEvent || eventName == constants.UserSignUpWebhookEvent {