mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
fix: 24 hours
This commit is contained in:
parent
bc7381f63d
commit
2ead75a8c8
1 changed files with 2 additions and 3 deletions
|
|
@ -253,9 +253,8 @@ export function renderSearch($app) {
|
|||
|
||||
const canon = typeof canonicalSkuFn === "function" ? canonicalSkuFn : (x) => x;
|
||||
|
||||
// Filter to last 3 days (was 24 hours)
|
||||
const nowMs = Date.now();
|
||||
const cutoffMs = nowMs - 3 * 24 * 60 * 60 * 1000;
|
||||
const cutoffMs = nowMs - 24 * 60 * 60 * 1000;
|
||||
|
||||
function eventMs(r) {
|
||||
const t = String(r?.ts || "");
|
||||
|
|
@ -329,7 +328,7 @@ export function renderSearch($app) {
|
|||
const limited = ranked.slice(0, 140);
|
||||
|
||||
$results.innerHTML =
|
||||
`<div class="small">Recently changed (last 3 days):</div>` +
|
||||
`<div class="small">Recently changed (last 24 hours):</div>` +
|
||||
limited
|
||||
.map(({ r, meta }) => {
|
||||
const kindLabel =
|
||||
|
|
|
|||
Loading…
Reference in a new issue