Skip to content

Commit

Permalink
fix: stop sending username attribute to calcom
Browse files Browse the repository at this point in the history
Signed-off-by: PhilippFruh <[email protected]>
  • Loading branch information
PhilippFr committed Jul 6, 2022
1 parent c7bc8c9 commit 06cefe7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ private CalcomUser createCalcomUser(ConsultantDTO consultant) throws JsonProcess
} else {
CalcomUser creationUser = new CalcomUser();
creationUser.setName(consultant.getFirstname() + " " + consultant.getLastname());
creationUser.setUsername(consultant.getUsername().replace("enc.", ""));
creationUser.setEmail(consultant.getEmail());
// Default values
creationUser.setTimeZone("Europe/Berlin");
creationUser.setWeekStart("Monday");
creationUser.setLocale("de");
creationUser.setTimeFormat(24);
creationUser.setAllowDynamicBooking(false);
creationUser.setAway(false);
// TODO: Any more default values?
ObjectMapper objectMapper = new ObjectMapper();
// Ignore null values
Expand Down Expand Up @@ -161,14 +161,14 @@ private CalcomUser updateCalcomUser(ConsultantDTO consultant) throws JsonProcess
CalcomUser updateUser = new CalcomUser();
updateUser.setId(calcomUserId);
updateUser.setName(consultant.getFirstname() + " " + consultant.getLastname());
updateUser.setUsername(consultant.getUsername().replace("enc.", ""));
updateUser.setEmail(consultant.getEmail());
// Default values
updateUser.setTimeZone("Europe/Berlin");
updateUser.setWeekStart("Monday");
updateUser.setLocale("de");
updateUser.setTimeFormat(24);
updateUser.setAllowDynamicBooking(false);
updateUser.setAway(false);
// TODO: Any more default values?
ObjectMapper objectMapper = new ObjectMapper();
// Ignore null values
Expand Down

0 comments on commit 06cefe7

Please sign in to comment.