This commit is contained in:
Christopher Cookman 2024-08-30 15:07:19 -06:00
parent 36b564bf9b
commit aca4a927f1
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -140,8 +140,10 @@ function sendAlert(accountNumber, transaction, placeName, systemName, zoneNumber
reject(err);
} else if (row) {
if (new Date(row.cooldown) > new Date()) {
console.log("Cooldown")
reject("Cooldown");
} else {
console.log("Not cooldown")
newCooldown = new Date();
newCooldown.setMinutes(newCooldown.getMinutes() + 5);