Sebastian Stehle
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
4 additions and
4 deletions
-
backend/src/Squidex.Domain.Apps.Entities/Rules/RuleDomainObject.cs
-
backend/src/Squidex.Domain.Apps.Entities/Rules/Runner/RuleRunnerGrain.cs
-
backend/tests/Squidex.Domain.Apps.Entities.Tests/Rules/RuleDomainObjectTests.cs
|
|
|
@ -114,7 +114,7 @@ namespace Squidex.Domain.Apps.Entities.Rules |
|
|
|
|
|
|
|
var @event = SimpleMapper.Map(command, new RuleManuallyTriggered { RuleId = Snapshot.Id, AppId = Snapshot.AppId }); |
|
|
|
|
|
|
|
await ruleEnqueuer.EnqueueAsync(Snapshot.RuleDef, Snapshot.UniqueId, Envelope.Create(@event)); |
|
|
|
await ruleEnqueuer.EnqueueAsync(Snapshot.RuleDef, Snapshot.Id, Envelope.Create(@event)); |
|
|
|
|
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
@ -179,7 +179,7 @@ namespace Squidex.Domain.Apps.Entities.Rules.Runner |
|
|
|
} |
|
|
|
|
|
|
|
await state.WriteAsync(); |
|
|
|
}, $"\\-{Key}", job.Position, ct); |
|
|
|
}, $"^([a-z]+)\\-{Key}", job.Position, ct); |
|
|
|
} |
|
|
|
catch (OperationCanceledException) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -164,8 +164,8 @@ namespace Squidex.Domain.Apps.Entities.Rules |
|
|
|
|
|
|
|
Assert.Null(result); |
|
|
|
|
|
|
|
A.CallTo(() => ruleEnqueuer.EnqueueAsync(sut.Snapshot.RuleDef, sut.UniqueId, |
|
|
|
A<Envelope<IEvent>>.That.Matches(x => x.Payload is RuleManuallyTriggered))) |
|
|
|
A.CallTo(() => ruleEnqueuer.EnqueueAsync(sut.Snapshot.RuleDef, sut.Snapshot.Id, |
|
|
|
A<Envelope<IEvent>>.That.Matches(x => x.Payload is RuleManuallyTriggered))) |
|
|
|
.MustHaveHappened(); |
|
|
|
} |
|
|
|
|
|
|
|
|