2 Commits
Author SHA1 Message Date
vladp 85449d73fd fix
Test Workflow / test (push) Successful in 5s
2026-01-24 12:23:05 +07:00
vladp 859239e77a fix
Test Workflow / test (push) Successful in 7s
2026-01-24 12:22:15 +07:00
3 changed files with 2 additions and 4 deletions
-2
View File
@@ -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());
}
}