migration fix
This commit is contained in:
parent
ba2a83eef0
commit
647086f1dd
|
@ -129,6 +129,10 @@ public class UserMigrationService {
|
|||
data.setLanguage(language);
|
||||
data.setAvatarUrl(avatarUrl);
|
||||
item.setAdditionalInfo(this.jsonHandlingService.toJson(data));
|
||||
if (item.getName() == null || item.getName().isBlank()) {
|
||||
if (oldUser != null && oldUser.getEmail() != null && !item.getName().isBlank()) item.setName(oldUser.getEmail());
|
||||
else item.setName("No name");
|
||||
}
|
||||
this.entityManager.persist(item);
|
||||
}
|
||||
this.entityManager.flush();
|
||||
|
|
Loading…
Reference in New Issue