Skip to content

Commit

Permalink
MODLD-582: Fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiBordak committed Nov 26, 2024
1 parent 6c79fbc commit 91abd3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class SpecProviderImpl implements SpecProvider {
@Override
public List<SpecificationRuleDto> getSpecRules() {
try {
return Optional.ofNullable(client.getBibMarcSpecs().getBody())
return Optional.ofNullable(client.getBibMarcSpecs())
.map(ResponseEntity::getBody)
.map(SpecificationDtoCollection::getSpecifications)
.stream()
.flatMap(Collection::stream)
Expand Down

0 comments on commit 91abd3b

Please sign in to comment.