|
|
@ -8,6 +8,7 @@ |
|
|
using System; |
|
|
using System; |
|
|
using System.Threading; |
|
|
using System.Threading; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
|
|
|
using Newtonsoft.Json.Bson; |
|
|
using NodaTime; |
|
|
using NodaTime; |
|
|
using Orleans; |
|
|
using Orleans; |
|
|
using Orleans.Runtime; |
|
|
using Orleans.Runtime; |
|
|
@ -77,7 +78,9 @@ namespace Squidex.Domain.Apps.Entities.Contents |
|
|
|
|
|
|
|
|
if (job != null) |
|
|
if (job != null) |
|
|
{ |
|
|
{ |
|
|
var command = new ChangeContentStatus { ContentId = content.Id, Status = job.Status, Actor = job.ScheduledBy, JobId = job.Id }; |
|
|
var command = new ChangeContentStatus { ContentId = content.Id, Status = job.Status, JobId = job.Id }; |
|
|
|
|
|
|
|
|
|
|
|
command.Actor = job.ScheduledBy; |
|
|
|
|
|
|
|
|
await commandBus.PublishAsync(command); |
|
|
await commandBus.PublishAsync(command); |
|
|
} |
|
|
} |
|
|
|