Heroku
This commit is contained in:
parent
1aaec24536
commit
42f333b57e
|
@ -100,7 +100,7 @@ const runCron = async () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const expiryTime = Date.now() - (1000 * 60 * 15); // 15 Minutes
|
const expiryTime = Date.now() - (1000 * 60 * 15); // 15 Minutes
|
||||||
db.collection('alerts').deleteMany({ tgChatId: { '$exists': false }, timestamp: { '$lt': expiryTime } });
|
db.collection('alerts').deleteMany({ alertProvider: 'tg', tgChatId: { '$exists': false }, timestamp: { '$lt': expiryTime } });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
sendLogsToDiscord(null, e);
|
sendLogsToDiscord(null, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue