From 42f333b57e5f3f240b95dfdd9eb08c2b75aaf95d Mon Sep 17 00:00:00 2001 From: Ralfs Date: Sun, 11 Apr 2021 12:48:34 +0300 Subject: [PATCH] Heroku --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0187397..c539a48 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,7 +100,7 @@ const runCron = async () => { } }); 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) { sendLogsToDiscord(null, e); }