Skip to content

Commit

Permalink
Merge pull request #652 from akto-api-security/feature/ab_6
Browse files Browse the repository at this point in the history
Feature/ab 6
  • Loading branch information
ankush-jain-akto authored Mar 7, 2023
2 parents 6eccc1c + e2215f7 commit 6b001c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ export default {
let params = resp.endpoints
let total = resp.total
this.total = total
let now = func.timeNow()
let listParams = params.filter(x => x.timestamp > now - func.recencyPeriod).map(this.processParams)
let listParams = params.map(this.processParams)
let sortedParams = listParams.sort((a, b) => {
if (a.detectedTs > b.detectedTs + 3600) {
return -1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export default {
refreshPage(hardRefresh) {
if (hardRefresh || ((new Date() / 1000) - this.lastFetched > 60*5)) {
this.$store.dispatch('changes/fetchDataTypeNames')
api.fetchSubTypeCountMap(this.startTimestamp, this.endTimestamp).then((resp)=> {
api.fetchSubTypeCountMap(0, this.endTimestamp).then((resp)=> {
this.subTypeCountMap = resp.response.subTypeCountMap
})
}
Expand Down

0 comments on commit 6b001c8

Please sign in to comment.