Add tags into listing response

[MAILPOET-4441]
This commit is contained in:
Jan Lysý
2022-07-04 12:52:52 +02:00
committed by Veljko V
parent a1daf7dc3a
commit e8b94761e5
2 changed files with 15 additions and 16 deletions

View File

@@ -66,6 +66,7 @@ class SubscribersResponseBuilder {
'is_woocommerce_user' => $subscriber->getIsWoocommerceUser(),
'created_at' => ($createdAt = $subscriber->getCreatedAt()) ? $createdAt->format(self::DATE_FORMAT) : null,
'engagement_score' => $subscriber->getEngagementScore(),
'tags' => $this->buildTags($subscriber),
];
}