Add check that newsletter history record is not deleted

[MAILPOET-4685]
This commit is contained in:
Jan Lysý
2022-09-29 15:17:05 +02:00
committed by Rodrigo Primo
parent b79188e262
commit 12b1bf4698

View File

@@ -413,6 +413,7 @@ class NewslettersRepository extends Repository {
->where('n.parent = :parent')
->andWhere('n.type = :type')
->andWhere('n.status = :status')
->andWhere('n.deletedAt IS NULL')
->andWhere('t.status != :taskStatus')
->setParameter('parent', $newsletter)
->setParameter('type', NewsletterEntity::TYPE_NOTIFICATION_HISTORY)