aboutsummaryrefslogtreecommitdiff
path: root/back-end/src/Endpoints/ChannelEndpoint.cs
diff options
context:
space:
mode:
Diffstat (limited to 'back-end/src/Endpoints/ChannelEndpoint.cs')
-rw-r--r--back-end/src/Endpoints/ChannelEndpoint.cs5
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;