fix newsletter routing and service
This commit is contained in:
parent
6dcd650cad
commit
dad54c97ed
4 changed files with 12 additions and 13 deletions
|
@ -16,13 +16,13 @@ export default abstract class NewsletterRecipientsService {
|
|||
.leftJoinAndSelect("member.sendNewsletter", "sendNewsletter")
|
||||
.leftJoinAndSelect("sendNewsletter.type", "communicationtype")
|
||||
.leftJoinAndSelect("newsletterRecipients.newsletter", "newsletter")
|
||||
.where("newsletterDates.newsletterId = :id", { id: newsletterId })
|
||||
.where("newsletterRecipients.newsletterId = :id", { id: newsletterId })
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
})
|
||||
.catch((err) => {
|
||||
throw new InternalException("newsletterRecipientss not found", err);
|
||||
throw new InternalException("newsletterRecipients not found", err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue