diff options
author | vnugent <public@vaughnnugent.com> | 2023-08-31 22:17:50 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-08-31 22:17:50 -0400 |
commit | d66290269d4709fe2d909284801f31669aa26f74 (patch) | |
tree | fcc7151652c880f60f5020c4069901439b6b6a8f /back-end/src/Endpoints/ChannelEndpoint.cs | |
parent | afdeeb686f3aa022bec19084a337e233c622b4e3 (diff) |
pre tag updates
Diffstat (limited to 'back-end/src/Endpoints/ChannelEndpoint.cs')
-rw-r--r-- | back-end/src/Endpoints/ChannelEndpoint.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/back-end/src/Endpoints/ChannelEndpoint.cs b/back-end/src/Endpoints/ChannelEndpoint.cs index c63d093..d51ad3a 100644 --- a/back-end/src/Endpoints/ChannelEndpoint.cs +++ b/back-end/src/Endpoints/ChannelEndpoint.cs @@ -45,6 +45,7 @@ namespace Content.Publishing.Blog.Admin.Endpoints private static readonly IValidator<FeedMeta> FeedValidator = FeedMeta.GetValidator(); private readonly IChannelContextManager ContentManager; + private readonly PostManager PostManager; public ChannelEndpoint(PluginBase plugin, IConfigScope config) @@ -54,6 +55,7 @@ namespace Content.Publishing.Blog.Admin.Endpoints InitPathAndLog(path, plugin.Log); ContentManager = plugin.GetOrCreateSingleton<ChannelManager>(); + PostManager = plugin.GetOrCreateSingleton<PostManager>(); } protected override async ValueTask<VfReturnType> GetAsync(HttpEntity entity) @@ -172,6 +174,9 @@ namespace Content.Publishing.Blog.Admin.Endpoints return VfReturnType.VirtualSkip; } + //Update post feeds + await PostManager.UpdateFeedForChannelAsync(channel, entity.EventCancellation); + //Return the new blog context to the client entity.CloseResponse(HttpStatusCode.Created); return VfReturnType.VirtualSkip; |