NCBACK-25 fix check duplicate exception
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-01-25 20:08:01 +07:00
parent 76103b9d96
commit 0a4ab562a4
@@ -404,7 +404,9 @@ public class ApiController {
FileEntity fileEntity = optionalFileEntity.get(); FileEntity fileEntity = optionalFileEntity.get();
Path path = Paths.get(fileEntity.getProtectedFilePath()); Path path = type.toLowerCase().equals("image") ? Paths.get(fileEntity.getFilePath()) :
Paths.get(fileEntity.getProtectedFilePath());
File file = path.toFile(); File file = path.toFile();
NoCopyCheckResult noCopyCheckResult = noCopyFileService.checkFile(file, NoCopyCheckResult noCopyCheckResult = noCopyFileService.checkFile(file,