Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Remove day-limit code from activity, was truncating results
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiew committed Sep 1, 2021
1 parent 0c8a755 commit 8f827ea
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ function formatHotspotActivity(allActivity) {

for (let i = 0; i < allActivity.length; i++) {
const activity = allActivity[i];
let now = Math.round(Date.now() / 1000);
let days = 60 * 60 * 24 * 1;
if(activity['time'] < (now - days)){
break;
}
let type = formatType(activity["type"]);
let details = '';
let meta = '';
Expand Down Expand Up @@ -260,8 +255,6 @@ function formatHotspotActivity(allActivity) {
// `[x](https://explorer.helium.com/address/${hotspot["address"]}`
}

if (process.env.SHOW_TOTAL == '1' && hotspots.length > 1) {
}
return output;
}

Expand Down

0 comments on commit 8f827ea

Please sign in to comment.