mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-06 18:47:20 +00:00
Fix permanent mutes being removed immediately as if they expired
This commit is contained in:
parent
2e9445ce35
commit
58e69a19a3
5 changed files with 13 additions and 5 deletions
|
@ -49,7 +49,7 @@ export function registerExpiringVCAlert(alert: VCAlert) {
|
|||
clearExpiringVCAlert(alert);
|
||||
|
||||
console.log("[EXPIRING VCALERTS LOOP] Registering new expiring vcalert");
|
||||
const remaining = Math.max(0, moment.utc(alert.expires_at!).diff(moment.utc()));
|
||||
const remaining = Math.max(0, moment.utc(alert.expires_at).diff(moment.utc()));
|
||||
if (remaining > LOOP_INTERVAL) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue