fix(lastleg): restore overseas receiving build
This commit is contained in:
+1
-1
@@ -451,7 +451,7 @@ public class ReceivingContainerService {
|
||||
.map(ReceivingContainerRequests.SignedPhoto::role).collect(Collectors.toSet());
|
||||
if (roles.size() != 3 || roles.contains(null)) throw conflict("Each unload photo role is required exactly once");
|
||||
Set<Long> fileIds = request.photos().stream().map(ReceivingContainerRequests.SignedPhoto::fileId)
|
||||
.boxed().collect(Collectors.toSet());
|
||||
.collect(Collectors.toSet());
|
||||
if (fileIds.size() != 3 || fileIds.stream().anyMatch(value -> value == null || value <= 0)) {
|
||||
throw conflict("Unload photo file IDs must be positive and unique");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user