mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-04-27 15:07:43 +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;
|
const canon = typeof canonicalSkuFn === "function" ? canonicalSkuFn : (x) => x;
|
||||||
|
|
||||||
// Filter to last 3 days (was 24 hours)
|
|
||||||
const nowMs = Date.now();
|
const nowMs = Date.now();
|
||||||
const cutoffMs = nowMs - 3 * 24 * 60 * 60 * 1000;
|
const cutoffMs = nowMs - 24 * 60 * 60 * 1000;
|
||||||
|
|
||||||
function eventMs(r) {
|
function eventMs(r) {
|
||||||
const t = String(r?.ts || "");
|
const t = String(r?.ts || "");
|
||||||
|
|
@ -329,7 +328,7 @@ export function renderSearch($app) {
|
||||||
const limited = ranked.slice(0, 140);
|
const limited = ranked.slice(0, 140);
|
||||||
|
|
||||||
$results.innerHTML =
|
$results.innerHTML =
|
||||||
`<div class="small">Recently changed (last 3 days):</div>` +
|
`<div class="small">Recently changed (last 24 hours):</div>` +
|
||||||
limited
|
limited
|
||||||
.map(({ r, meta }) => {
|
.map(({ r, meta }) => {
|
||||||
const kindLabel =
|
const kindLabel =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue