fixed welcome email containing deleted articles
This commit is contained in:
parent
42014a831c
commit
da590b721c
|
@ -80,7 +80,7 @@
|
|||
await Email.ClearToken(Id, Token);
|
||||
|
||||
var articles = await context.Set<EmailNewsletter>()
|
||||
.IgnoreAutoIncludes().IgnoreQueryFilters().Where(n => n.IsSend)
|
||||
.IgnoreAutoIncludes().IgnoreQueryFilters().Where(n => n.IsSend && !n.Article.IsDeleted)
|
||||
.Include(a => a.Article).ThenInclude(a => a.Author)
|
||||
.OrderByDescending(a => a.DistributionDateTime)
|
||||
.Take(3)
|
||||
|
|
Loading…
Reference in a new issue