dev add check for change status
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-27 13:56:52 +07:00
parent 3e90609ae0
commit ced8768332
3 changed files with 2 additions and 3 deletions
@@ -47,6 +47,7 @@ public class HandlerConfig {
StatisticSubscriberHandler statisticSubscriberHandler,
StatisticTokenHandler statisticTokenHandler,
StatisticIncomeHandler statisticIncomeHandler,
SummaryStatisticHandler summaryStatisticHandler,
MonitoringStatisticHandler monitoringStatisticHandler
) {
@@ -87,6 +88,7 @@ public class HandlerConfig {
map.put(30025, statisticTokenHandler);
map.put(30026, statisticIncomeHandler);
map.put(30027, monitoringStatisticHandler);
map.put(30028, summaryStatisticHandler);
return map;
}
@@ -1,6 +1,5 @@
package ru.soune.nocopy.handler;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@@ -15,7 +14,6 @@ import ru.soune.nocopy.service.statistic.ViolationStatisticService;
@Slf4j
public class StatisticViolationHandler implements RequestHandler {
private final ObjectMapper objectMapper;
private final ViolationStatisticService statisticService;
@Override
@@ -391,7 +391,6 @@ public class FileUploadServiceImpl implements FileUploadService {
session.getUserId());
File file = new File(finalFilePath);
// File file = cloudStorageService.readFileFromStorageByPath(finalFilePath);
if (session.getFileType().startsWith("audio") && !isWavFile(file)) {
session.setStatus(UploadStatus.FAILED);