fixed ArticleEditor not updating Newsletter distribution dates

This commit is contained in:
Mia Rose Winter 2024-02-19 14:36:19 +01:00
parent 82cf5a875b
commit dcb70897ca
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -314,7 +314,8 @@
}
}
var newsletter = await context.Set<EmailNewsletter>().FirstOrDefaultAsync(n => n.Article == article);
var newsletter = await context.Set<EmailNewsletter>()
.IgnoreQueryFilters().FirstOrDefaultAsync(n => n.Article == article);
if (newsletter is not null) {
newsletter.DistributionDateTime = article.PublishDate;
}