Added time update from Dispatcher

This commit is contained in:
PxlLoewe
2025-06-02 15:32:09 -07:00
parent af36b82221
commit 41931fd276
5 changed files with 54 additions and 33 deletions

View File

@@ -15,8 +15,8 @@ const removeClosedMissions = async () => {
const now = new Date();
if (!lastAlertTime) return;
// change State to closed if last alert was more than 120 minutes ago
if (lastAlertTime && now.getTime() - lastAlertTime.getTime() > 120 * 60 * 1000) {
// change State to closed if last alert was more than 180 minutes ago
if (lastAlertTime && now.getTime() - lastAlertTime.getTime() > 180 * 60 * 1000) {
const log: MissionLog = {
type: "completed-log",
auto: true,