@@ -141,7 +141,7 @@ public class FileSimilarityService {
|
|||||||
return duplicates;
|
return duplicates;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasDuplicatesByHash(String path, Long userId,String mimeType) throws Exception {
|
public void hasDuplicatesByHash(String path, Long userId, String mimeType) throws Exception {
|
||||||
String hash = calculateFileHash(path);
|
String hash = calculateFileHash(path);
|
||||||
List<FileEntity> fileEntityList = fileEntityRepository.findByUserIdAndMimeType(userId, mimeType);
|
List<FileEntity> fileEntityList = fileEntityRepository.findByUserIdAndMimeType(userId, mimeType);
|
||||||
|
|
||||||
@@ -151,8 +151,6 @@ public class FileSimilarityService {
|
|||||||
file.getUserId());
|
file.getUserId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Page<SimilarFileDTO> findSimilarFiles(String fileId, SimilarityFilter filter, Pageable pageable,
|
public Page<SimilarFileDTO> findSimilarFiles(String fileId, SimilarityFilter filter, Pageable pageable,
|
||||||
|
|||||||
Reference in New Issue
Block a user