@@ -155,13 +155,13 @@ public class UserInfoHandler implements RequestHandler {
|
|||||||
map.put("id", user.getId());
|
map.put("id", user.getId());
|
||||||
map.put("fullName", user.getFullName());
|
map.put("fullName", user.getFullName());
|
||||||
map.put("email", user.getEmail());
|
map.put("email", user.getEmail());
|
||||||
map.put("verificationStatus", user.getVerificationStatus().name());
|
map.put("verificationStatus", user.getVerificationStatus() != null ? user.getVerificationStatus().name() : null);
|
||||||
map.put("createdAt", user.getCreatedAt() != null ? user.getCreatedAt().toString() : null);
|
map.put("createdAt", user.getCreatedAt() != null ? user.getCreatedAt().toString() : null);
|
||||||
|
|
||||||
TariffInfo tariff = user.getActiveTariffInfo();
|
TariffInfo tariff = user.getActiveTariffInfo();
|
||||||
if (tariff != null) {
|
if (tariff != null) {
|
||||||
map.put("tariff", tariff.getStatus().name());
|
map.put("tariff", tariff.getStatus() != null ? tariff.getStatus().name() : null);
|
||||||
map.put("tokens", tariff.getTokens());
|
map.put("tokens", tariff.getTokens() != null ? tariff.getTokens() : 0);
|
||||||
} else {
|
} else {
|
||||||
map.put("tariff", null);
|
map.put("tariff", null);
|
||||||
map.put("tokens", 0);
|
map.put("tokens", 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user