From 46fa2ae8f4edafec0b3366c4f2232e47159034da Mon Sep 17 00:00:00 2001 From: filesite Date: Mon, 22 Apr 2024 14:38:41 +0000 Subject: [PATCH] bug fix for expired task notify status not update --- heroUnion.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/heroUnion.mjs b/heroUnion.mjs index 58af7d9..293c56a 100644 --- a/heroUnion.mjs +++ b/heroUnion.mjs @@ -471,6 +471,10 @@ class HeroUnion { ) { _self.taskStatus[item.status] --; _self.taskStatus.total --; + + let notify_status = item.notified ? 'done' : 'failed'; + _self.taskNotifyStatus[notify_status] --; + _self.taskNotifyStatus.total --; common.log('Task %s is expired, which is created at %s', item.id, item.created); }else { accumulator.push(item);