fix: refresh invalid last pickup timestamps

Force an immediate member refresh for legacy epoch timestamps so they are
replaced by the correct no-pickup status without waiting for the weekly check.
This commit is contained in:
2026-08-05 20:24:37 +02:00
parent 61c2488a1e
commit fb6bc6addd
3 changed files with 9 additions and 4 deletions

View File

@@ -17,6 +17,10 @@ function getStaleLastPickupStoreIds(config = [], now = Date.now()) {
if (!entry?.id || entry.hidden) {
return false;
}
const lastPickupAt = parseTimestamp(entry.lastPickupAt);
if (entry.lastPickupAt && (!lastPickupAt || lastPickupAt <= 0)) {
return true;
}
const checkedAt = parseTimestamp(entry.lastPickupCheckedAt);
return !checkedAt || now - checkedAt > LAST_PICKUP_INFO_MAX_AGE_MS;
})