From 329a8ae7fbce54768d57b9e4de5d748eae826195 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Wed, 6 May 2020 18:04:24 +0200 Subject: [PATCH] #1309 Update the API call that fetches a job of a given analyzer or a given observable --- frontend/app/scripts/services/api/CortexSrv.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/frontend/app/scripts/services/api/CortexSrv.js b/frontend/app/scripts/services/api/CortexSrv.js index 9d347a5f9e..d68187c3cf 100644 --- a/frontend/app/scripts/services/api/CortexSrv.js +++ b/frontend/app/scripts/services/api/CortexSrv.js @@ -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: [ { @@ -42,15 +39,17 @@ { analyzerId: analyzerId }, { - _like: { - _field: 'analyzerDefinition', - _value: analyzerId - } + 'analyzerDefinition': analyzerId } ] } ] } + }, { + params: { + sort: '-startDate', + range: '0-' + (limit || 10), + } }); };