dev fix add count
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-28 14:42:41 +07:00
parent 8a1035c6e1
commit cca3a58f5a
@@ -31,8 +31,15 @@ public class ViolationStatisticsHandler implements RequestHandler {
@Override @Override
public BaseResponse handle(BaseRequest request) throws Exception { public BaseResponse handle(BaseRequest request) throws Exception {
ViolationStatisticsRequest statRequest = objectMapper.convertValue( log.info("start find violation statistic");
request.getMessageBody(), ViolationStatisticsRequest.class); log.info("start find violation statistic");
log.info("start find violation statistic");
log.info("start find violation statistic");
log.info("start find violation statistic");
log.info("start find violation statistic");
log.info("start find violation statistic");
ViolationStatisticsRequest statRequest = objectMapper.convertValue(request.getMessageBody(),
ViolationStatisticsRequest.class);
validateRequest(statRequest); validateRequest(statRequest);
@@ -48,8 +55,7 @@ public class ViolationStatisticsHandler implements RequestHandler {
} }
} }
Optional<AuthToken> tokenOptional = Optional<AuthToken> tokenOptional = authTokenRepository.findByToken(statRequest.getToken());
authTokenRepository.findByToken(statRequest.getToken());
if (tokenOptional.isEmpty()) { if (tokenOptional.isEmpty()) {
throw new IllegalArgumentException("User token is required"); throw new IllegalArgumentException("User token is required");