Skip to content

Commit

Permalink
#1309 Update the API call that fetches a job of a given analyzer or a…
Browse files Browse the repository at this point in the history
… given observable
  • Loading branch information
nadouani committed May 6, 2020
1 parent 3e288ef commit 329a8ae
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions frontend/app/scripts/services/api/CortexSrv.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@

this.getJobs = function(caseId, observableId, analyzerId, limit) {
return $http.post(baseUrl + '/job/_search', {
sort: '-startDate',
range: '0-' + (
limit || 10),
query: {
_and: [
{
Expand All @@ -42,15 +39,17 @@
{
analyzerId: analyzerId
}, {
_like: {
_field: 'analyzerDefinition',
_value: analyzerId
}
'analyzerDefinition': analyzerId
}
]
}
]
}
}, {
params: {
sort: '-startDate',
range: '0-' + (limit || 10),
}
});
};

Expand Down

0 comments on commit 329a8ae

Please sign in to comment.