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();
|
await using var context = await ContextFactory.CreateDbContextAsync();
|
||||||
|
|
||||||
Newsletters = await context.Set<EmailNewsletter>()
|
Newsletters = await context.Set<EmailNewsletter>()
|
||||||
|
.IgnoreQueryFilters()
|
||||||
.Include(n => n.Article)
|
.Include(n => n.Article)
|
||||||
|
.Where(n => !n.Article.IsDeleted)
|
||||||
.OrderByDescending(n => n.DistributionDateTime)
|
.OrderByDescending(n => n.DistributionDateTime)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue