@@ -57,7 +57,7 @@ public class FileEntityService {
|
|||||||
if (!duplicatedByHash.isEmpty()) {
|
if (!duplicatedByHash.isEmpty()) {
|
||||||
SimilarImageProjection similarImageProjection = duplicatedByHash.get(0);
|
SimilarImageProjection similarImageProjection = duplicatedByHash.get(0);
|
||||||
|
|
||||||
throw new DuplicateImageException("Duplicate", similarImageProjection.getFileId(),
|
throw new DuplicateImageException("Duplicate", similarImageProjection.getId(),
|
||||||
similarImageProjection.getUserId());
|
similarImageProjection.getUserId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ public class FileUploadServiceImpl implements FileUploadService {
|
|||||||
hash.get("hi"), hash.get("low"));
|
hash.get("hi"), hash.get("low"));
|
||||||
|
|
||||||
if (!duplicates.isEmpty()) {
|
if (!duplicates.isEmpty()) {
|
||||||
throw new DuplicateImageException("Duplicate", duplicates.get(0).getFileId(),
|
throw new DuplicateImageException("Duplicate", duplicates.get(0).getId(),
|
||||||
duplicates.get(0).getUserId());
|
duplicates.get(0).getUserId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user