Skip to content

Commit

Permalink
Fix empty lastname (#465)
Browse files Browse the repository at this point in the history
* Fix empty last name

* disable crons
  • Loading branch information
omaryasser authored May 11, 2024
1 parent 81a8780 commit 8b18813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/azkar/services/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public User loadUserById(String id) {


public User buildNewUser(String email, String firstName, String lastName) {
return buildNewUser(email, firstName, lastName, /*encodedPassword=*/null);
return buildNewUser(email, firstName, lastName == null ? "" : lastName, /*encodedPassword=*/
null);
}

public User buildNewUser(String email, String firstName, String lastName,
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ files:
apple_auth_private_key: sign_in_with_apple_auth_key

challenges-cleaner-job-run-mode: false
friendship-empty-group-id-cleaner-job-run-mode: true
friendship-empty-group-id-cleaner-job-run-mode: false

0 comments on commit 8b18813

Please sign in to comment.