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

This commit is contained in:
vladp
2026-02-21 21:01:23 +07:00
parent 339a3f61cd
commit ca10d4d130
3 changed files with 6 additions and 4 deletions
@@ -110,9 +110,9 @@ public class FileSimilarityService {
return duplicates;
}
public void hasDuplicatesByHash(String path, Long userId, String mimeType) throws Exception {
public void hasDuplicatesByHash(String path, String mimeType) throws Exception {
String hash = calculateFileHash(path);
List<FileEntity> fileEntityList = fileEntityRepository.findByUserIdAndMimeType(userId, mimeType);
List<FileEntity> fileEntityList = fileEntityRepository.findByMimeType(mimeType);
for (FileEntity file : fileEntityList) {
if (calculateFileHash(file.getFilePath()).equals(hash)) {