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:
@@ -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;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user