From 8b18813bc9722ca9e0faebd8c557405bcd65a026 Mon Sep 17 00:00:00 2001 From: Omar Yasser Date: Sat, 11 May 2024 11:30:51 +0100 Subject: [PATCH] Fix empty lastname (#465) * Fix empty last name * disable crons --- src/main/java/com/azkar/services/UserService.java | 3 ++- src/main/resources/application.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/azkar/services/UserService.java b/src/main/java/com/azkar/services/UserService.java index ced34e6f..5a37bfbd 100644 --- a/src/main/java/com/azkar/services/UserService.java +++ b/src/main/java/com/azkar/services/UserService.java @@ -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, diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ee88b746..91e1ab02 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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