Skip to content

Commit

Permalink
fix(rest): Job execution filter by start date now works fine
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeLuise authored and Coduz committed Mar 7, 2024
1 parent 9a69b93 commit e336321
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ public JobExecutionListResult query(
@PathParam("jobId") EntityId jobId,
JobExecutionQuery query) throws KapuaException {
query.setScopeId(scopeId);
query.setPredicate(query.attributePredicate(JobExecutionAttributes.JOB_ID, jobId));
final AndPredicate andPredicate = query.andPredicate(
query.attributePredicate(JobExecutionAttributes.JOB_ID, jobId),
query.getPredicate()
);
query.setPredicate(andPredicate);
return jobExecutionService.query(query);
}

Expand Down

0 comments on commit e336321

Please sign in to comment.