fixed newsletter page not showing un-send newsletters

This commit is contained in:
Mia Rose Winter 2024-03-18 12:06:47 +01:00
parent fe6340a784
commit ed69c55d3b
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -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();