fixed newsletter page not showing un-send newsletters
This commit is contained in:
parent
fe6340a784
commit
ed69c55d3b
|
@ -67,7 +67,9 @@
|
|||
await using var context = await ContextFactory.CreateDbContextAsync();
|
||||
|
||||
Newsletters = await context.Set<EmailNewsletter>()
|
||||
.IgnoreQueryFilters()
|
||||
.Include(n => n.Article)
|
||||
.Where(n => !n.Article.IsDeleted)
|
||||
.OrderByDescending(n => n.DistributionDateTime)
|
||||
.ToListAsync();
|
||||
|
||||
|
|
Loading…
Reference in a new issue