dev comment logic for check max users
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-02-21 21:41:05 +07:00
parent f932bb47f0
commit 7631ea8c8c
3 changed files with 11 additions and 7 deletions
@@ -5,8 +5,6 @@ import com.vrt.fileprotection.FileProtector;
import com.vrt.fileprotection.NoCopyCheckResult;
import com.vrt.fileprotection.audio.AudioCheckResult;
import com.vrt.fileprotection.documents.DocumentCheckResult;
import com.vrt.fileprotection.image.ImageCheckResult;
import com.vrt.fileprotection.image.ImageLocalSearch;
import jakarta.annotation.PostConstruct;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
@@ -19,10 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import ru.soune.nocopy.dto.file.UploadProgressResponse;
import ru.soune.nocopy.entity.file.*;
import ru.soune.nocopy.exception.ChunkSizeExceededException;
import ru.soune.nocopy.exception.DuplicateImageException;
import ru.soune.nocopy.exception.FileUploadException;
import ru.soune.nocopy.exception.UploadSessionNotFoundException;
import ru.soune.nocopy.exception.*;
import ru.soune.nocopy.repository.FileEntityRepository;
import ru.soune.nocopy.repository.FileUploadSessionRepository;
import ru.soune.nocopy.repository.SimilarImageProjection;
@@ -333,7 +328,7 @@ public class FileUploadServiceImpl implements FileUploadService {
sessionRepository.save(session);
throw new FileUploadException("Failed to upload chunk: .wav file not have RIFF header");
throw new FileFormatException("Failed to upload chunk: .wav file not have RIFF header");
}
FileProtector.Type type = "document".equals(session.getFileType()) ?