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

This commit is contained in:
vladp
2026-02-05 20:23:33 +07:00
parent 511da8321b
commit 80c53515fb
@@ -53,7 +53,7 @@ public class TariffInfoService {
Integer tokens = activeTariffInfo.getTokens();
if (tokens - value > 0) {
if (tokens - value >= 0) {
activeTariffInfo.setTokens(activeTariffInfo.getTokens() - value);
tariffInfoRepository.save(activeTariffInfo);