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