Use subscription group to determine mail recipients.
This commit is contained in:
parent
f299158fbb
commit
dd023d0a0e
1 changed files with 1 additions and 5 deletions
|
|
@ -52,11 +52,7 @@ sub getRecipients {
|
|||
my $self = shift;
|
||||
my $db = $self->session->db;
|
||||
|
||||
my @subscribers = $db->buildArray( 'select userId from NewsletterCollection_subscriptions where assetId=?', [
|
||||
$self->getId,
|
||||
] );
|
||||
|
||||
return \@subscribers;
|
||||
return $self->getSubscriptionGroup->getUsers;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue