dev add method link
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-08 15:34:57 +07:00
parent 6565c18958
commit 01ba4c3892
@@ -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);