Skip to content

Commit

Permalink
[backend/frontend] Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Jan 22, 2025
1 parent 830b542 commit 2273b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.stream.Stream;
import lombok.RequiredArgsConstructor;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -247,7 +246,7 @@ public List<InjectExpectation> preventionExpectationsNotFill() {
return this.injectExpectationRepository
.findAll(Specification.where(InjectExpectationSpecification.type(PREVENTION)))
.stream()
.filter(e -> e.getAsset() != null && e.getAsset() != null)
.filter(e -> e.getAsset() != null && e.getAgent() != null)
.filter(e -> e.getResults().stream().toList().isEmpty())
.toList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public static Specification<InjectExpectation> fromAssets(
return (root, query, cb) ->
cb.and(
cb.equal(root.get("inject").get("id"), injectId),
cb.isNull(root.get("agent")),
root.get("asset").get("id").in(assetIds));
}
}

0 comments on commit 2273b5e

Please sign in to comment.