Added time update from Dispatcher
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user