From 688d061c87ae3e226456f4fc1d2a9f1656eef841 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 13 Oct 2023 13:23:13 +0800 Subject: [PATCH] fix old data --- NotifySend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NotifySend.php b/NotifySend.php index 410aa64c..1140470b 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -139,12 +139,12 @@ class Pman_Core_NotifySend extends Pman $cev = DB_DataObject::Factory('Events'); $cev->on_table = $this->table; $cev->on_id = $w->id; - $cev->action = 'NOTIFYSENT'; + $cev->whereAdd("action IN ('NOTIFYSENT', 'NOTIFYFAIL')"); $cev->limit(1); if ($cev->count()) { $cev->find(true); - $w->flagDone($cev, 'alreadysent'); - $this->errorHandler( "SENT (fix old) ". $cev->remarks); + $w->flagDone($cev, $cev->action == 'NOTIFYSENT' ? 'alreadysent' : ''); + $this->errorHandler( $cev->action . " (fix old) ". $cev->remarks); } -- 2.39.2