This commit is contained in:
Ralfs 2021-05-03 15:57:08 +03:00
parent 2e016f351f
commit 2fd0702582
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ const handleAlert = async (alert: any, mangoGroups: any[], db: any) => {
message += '\nVisit https://trade.mango.markets/'
const alertSent = await sendAlert(alert, message);
if (alertSent) {
db.collection('alerts').updateOne({ _id: new ObjectId(alert._id) }, { '$set': { open: false } });
db.collection('alerts').updateOne({ _id: new ObjectId(alert._id) }, { '$set': { open: false, triggeredTimestamp: Date.now() } });
}
}
} catch (e) {