Skip to content

Commit 49b88fb

Browse files
committed
update node
1 parent c51a0d6 commit 49b88fb

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

node-ui/mega-alerts.js

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,12 @@ class MegaData {
795795
}
796796

797797
const lastMod = res.headers.get("last-modified")
798+
if (
799+
lastMod &&
800+
this.upload_timers[connectedRealmId]?.lastUploadTimeRaw === lastMod
801+
) {
802+
return { auctions: [] }
803+
}
798804
if (lastMod) {
799805
this.update_local_timers(connectedRealmId, lastMod)
800806
}
@@ -877,6 +883,12 @@ class MegaData {
877883
)
878884
}
879885
const lastMod = res.headers.get("last-modified")
886+
if (
887+
lastMod &&
888+
this.upload_timers[connectedId]?.lastUploadTimeRaw === lastMod
889+
) {
890+
return { auctions: [] }
891+
}
880892
if (lastMod) this.update_local_timers(connectedId, lastMod)
881893
return data
882894
} catch (error) {
@@ -2293,10 +2305,9 @@ async function runAlerts(state, progress, runOnce = false) {
22932305
if (start_min <= end_min) {
22942306
// Normal range (no wraparound): e.g., 5 to 10
22952307
return start_min <= current_min && current_min <= end_min
2296-
} else {
2297-
// Wraparound range: e.g., 59 to 2 means [59, 0, 1, 2]
2298-
return current_min >= start_min || current_min <= end_min
22992308
}
2309+
// Wraparound range: e.g., 59 to 2 means [59, 0, 1, 2]
2310+
return current_min >= start_min || current_min <= end_min
23002311
}
23012312

23022313
/**

0 commit comments

Comments
 (0)