Track all changes by admin

[MAILPOET-2737]
This commit is contained in:
Pavel Dohnal
2020-06-23 16:42:02 +02:00
committed by Veljko V
parent c3e0f5cf76
commit b569f0cc8e

View File

@ -385,7 +385,6 @@ class Subscribers extends APIEndpoint {
isset($data['status'])
&& ($data['status'] === SubscriberEntity::STATUS_UNSUBSCRIBED)
&& ($oldSubscriber instanceof Subscriber)
&& ($oldSubscriber->status === SubscriberEntity::STATUS_SUBSCRIBED)
) {
$currentUser = $this->wp->wpGetCurrentUser();
$this->unsubscribesTracker->track(