We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4342731 commit d3c73d4Copy full SHA for d3c73d4
src/LinkDotNet.Blog.Web/Features/BlogPostPublisher.cs
@@ -48,12 +48,10 @@ private async Task PublishScheduledBlogPostsAsync()
48
49
var scheduledBlogPosts = await GetScheduledBlogPostsAsync(repository);
50
51
- if (!scheduledBlogPosts.Any())
+ if (scheduledBlogPosts.Any())
52
{
53
- return;
+ await PublishAndSaveScheduledBlogPostsAsync(scheduledBlogPosts, repository);
54
}
55
-
56
- await PublishAndSaveScheduledBlogPostsAsync(scheduledBlogPosts, repository);
57
58
59
private async Task<IPagedList<BlogPost>> GetScheduledBlogPostsAsync(IRepository<BlogPost> repository)
0 commit comments