Fix new account calculation
This commit is contained in:
parent
ae5da74bb1
commit
e3daf743f2
|
@ -67,8 +67,9 @@ public class Accounts {
|
||||||
.mapTo(UUID.class)
|
.mapTo(UUID.class)
|
||||||
.findOnly();
|
.findOnly();
|
||||||
|
|
||||||
|
boolean isNew = uuid.equals(account.getUuid());
|
||||||
account.setUuid(uuid);
|
account.setUuid(uuid);
|
||||||
return uuid.equals(account.getUuid());
|
return isNew;
|
||||||
} catch (JsonProcessingException e) {
|
} catch (JsonProcessingException e) {
|
||||||
throw new IllegalArgumentException(e);
|
throw new IllegalArgumentException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue