diff --git a/src/Spe.Sitecore8/Services/SpePublishManager.cs b/src/Spe.Sitecore8/Services/SpePublishManager.cs index 1abc7f20..c4bb42e6 100644 --- a/src/Spe.Sitecore8/Services/SpePublishManager.cs +++ b/src/Spe.Sitecore8/Services/SpePublishManager.cs @@ -18,6 +18,7 @@ public PublishResult PublishSync(PublishOptions options) { var publishContext = PublishManager.CreatePublishContext(options); publishContext.Languages = new[] { options.Language }; + publishContext.Job = Sitecore.Context.Job; return PublishPipeline.Run(publishContext); } diff --git a/src/Spe.Sitecore92/Services/SpePublishManager.cs b/src/Spe.Sitecore92/Services/SpePublishManager.cs index 1abc7f20..c4bb42e6 100644 --- a/src/Spe.Sitecore92/Services/SpePublishManager.cs +++ b/src/Spe.Sitecore92/Services/SpePublishManager.cs @@ -18,6 +18,7 @@ public PublishResult PublishSync(PublishOptions options) { var publishContext = PublishManager.CreatePublishContext(options); publishContext.Languages = new[] { options.Language }; + publishContext.Job = Sitecore.Context.Job; return PublishPipeline.Run(publishContext); }