diff --git a/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java b/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java index 8c199694b2..159f123f0c 100644 --- a/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java +++ b/apps/database-abstractor/src/main/java/com/akto/action/DbAction.java @@ -160,6 +160,8 @@ public void setTestSourceConfig(TestSourceConfig testSourceConfig) { String state; Bson filter; + String operator; + public BasicDBList getIssuesIds() { return issuesIds; } @@ -1814,11 +1816,7 @@ public String updateAccessMatrixUrlToRoles() { public String updateIssueCountInSummary() { try { - if (summaryId != null) { - ObjectId summaryObjectId = new ObjectId(summaryId); - totalCountIssues = TestExecutor.calcTotalCountIssues(summaryObjectId); - } - trrs = DbLayer.updateIssueCountInSummary(summaryId, totalCountIssues); + trrs = DbLayer.updateIssueCountInSummary(summaryId, totalCountIssues, operator); trrs.setTestingRunHexId(trrs.getTestingRunId().toHexString()); } catch (Exception e) { loggerMaker.errorAndAddToDb(e, "Error in updateIssueCountInSummary " + e.toString()); @@ -3339,5 +3337,13 @@ public void setFilter(Bson filter) { public TestScript getTestScript() { return testScript; } + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } }