File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Messaging/Service/Handler
Subscription/Service/Manager Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ public function handle(array $closureData): void
3939 ]),
4040 );
4141 $ this ->subscriberHistoryManager ->addHistory (
42- $ closureData ['subscriber ' ],
43- $ this ->translator ->trans ('Auto Unsubscribed ' ),
44- $ this ->translator ->trans ('email auto unsubscribed for bounce rule %rule_id% ' , [
42+ subscriber: $ closureData ['subscriber ' ],
43+ message: $ this ->translator ->trans ('Auto Unsubscribed ' ),
44+ details: $ this ->translator ->trans ('email auto unsubscribed for bounce rule %rule_id% ' , [
4545 '%rule_id% ' => $ closureData ['ruleId ' ]
4646 ])
4747 );
Original file line number Diff line number Diff line change @@ -91,6 +91,14 @@ public function updateSubscriber(UpdateSubscriberDto $subscriberDto): Subscriber
9191 return $ subscriber ;
9292 }
9393
94+ public function resetBounceCount (Subscriber $ subscriber ): Subscriber
95+ {
96+ $ subscriber ->setBounceCount (0 );
97+ $ this ->entityManager ->flush ();
98+
99+ return $ subscriber ;
100+ }
101+
94102 public function markAsConfirmedByUniqueId (string $ uniqueId ): Subscriber
95103 {
96104 $ subscriber = $ this ->subscriberRepository ->findOneByUniqueId ($ uniqueId );
You can’t perform that action at this time.
0 commit comments