@@ -14,7 +14,4 @@ public class TariffStatisticFullResponse {
|
||||
|
||||
@JsonProperty("tariffs")
|
||||
private List<TariffStatisticResponse> tariffs;
|
||||
|
||||
@JsonProperty("total_users")
|
||||
private Long totalUsers;
|
||||
}
|
||||
|
||||
@@ -37,10 +37,7 @@ public class StatisticTariffInfoFileHandler implements RequestHandler {
|
||||
))
|
||||
.toList();
|
||||
|
||||
Long totalUsers = tariffInfoRepository.getTotalUsersCount(activeOnly);
|
||||
|
||||
TariffStatisticFullResponse statistics = new TariffStatisticFullResponse(
|
||||
tariffs, totalUsers != null ? totalUsers : 0L);
|
||||
TariffStatisticFullResponse statistics = new TariffStatisticFullResponse(tariffs);
|
||||
|
||||
return new BaseResponse(
|
||||
request.getMsgId(),
|
||||
|
||||
Reference in New Issue
Block a user