From 8f827ea6096bb666e41df609bf7dd1b0b5526da9 Mon Sep 17 00:00:00 2001 From: Jamie Wilkinson Date: Wed, 1 Sep 2021 18:56:03 -0400 Subject: [PATCH] Remove day-limit code from activity, was truncating results --- bot.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bot.js b/bot.js index 0a60584..e085f41 100644 --- a/bot.js +++ b/bot.js @@ -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 = ''; @@ -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; }