Skip to content

Commit

Permalink
Add email in config_change_event_value.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhant2001 committed Jul 19, 2024
1 parent f524365 commit c3253da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ message ConfigChangeEventValue {
}
optional string user_id = 4;
optional string user_name = 5;
optional string user_email = 7;
int64 event_time_millis = 6;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private void produceDeleteNotification(

private void populateUserDetails(RequestContext requestContext, Builder builder) {
requestContext.getUserId().ifPresent(builder::setUserId);
requestContext.getName().or(requestContext::getEmail).ifPresent(builder::setUserName);
requestContext.getName().ifPresent(builder::setUserName);
requestContext.getEmail().ifPresent(builder::setUserEmail);
}
}

0 comments on commit c3253da

Please sign in to comment.