dev add stats api
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-05 19:47:32 +07:00
parent 90e3134e98
commit df1fd89c29
@@ -182,7 +182,7 @@ public class AuthService {
TariffInfo tariffInfo = company.getTariffInfo(); TariffInfo tariffInfo = company.getTariffInfo();
Long maxUsers = tariffInfo.getTariff().getMaxUsers(); Long maxUsers = tariffInfo.getTariff().getMaxUsers();
long currentCountUsers = userRepository.findByCompanyId(company.getId()).size(); long currentCountUsers = userRepository.countByCompanyId(company.getId());
//TODO add exception //TODO add exception
if (currentCountUsers < maxUsers) { if (currentCountUsers < maxUsers) {