Compare commits
2
Commits
NCBACK-34
...
85449d73fd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85449d73fd | ||
|
|
859239e77a |
@@ -16,8 +16,6 @@ dependencies {
|
||||
|
||||
implementation("io.insert-koin:koin-core:4.1.1")
|
||||
implementation("io.insert-koin:koin-core-jvm:4.1.1")
|
||||
|
||||
testImplementation(kotlin("test"))
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
|
||||
@@ -57,7 +57,7 @@ public class FileEntityService {
|
||||
if (!duplicatedByHash.isEmpty()) {
|
||||
SimilarImageProjection similarImageProjection = duplicatedByHash.get(0);
|
||||
|
||||
throw new DuplicateImageException("Duplicate", similarImageProjection.getFileId(),
|
||||
throw new DuplicateImageException("Duplicate", similarImageProjection.getId(),
|
||||
similarImageProjection.getUserId());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -375,7 +375,7 @@ public class FileUploadServiceImpl implements FileUploadService {
|
||||
hash.get("hi"), hash.get("low"));
|
||||
|
||||
if (!duplicates.isEmpty()) {
|
||||
throw new DuplicateImageException("Duplicate", duplicates.get(0).getFileId(),
|
||||
throw new DuplicateImageException("Duplicate", duplicates.get(0).getId(),
|
||||
duplicates.get(0).getUserId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user