diff --git a/src/Squidex.Domain.Apps.Entities/Rules/RuleGrain.cs b/src/Squidex.Domain.Apps.Entities/Rules/RuleGrain.cs index 92cdd4f95..248b09542 100644 --- a/src/Squidex.Domain.Apps.Entities/Rules/RuleGrain.cs +++ b/src/Squidex.Domain.Apps.Entities/Rules/RuleGrain.cs @@ -119,7 +119,7 @@ namespace Squidex.Domain.Apps.Entities.Rules { if (Snapshot.IsDeleted) { - throw new DomainException("Webhook has already been deleted."); + throw new DomainException("Rule has already been deleted."); } } diff --git a/tools/Migrate_01/Migrations/PopulateGrainIndexes.cs b/tools/Migrate_01/Migrations/PopulateGrainIndexes.cs index d37d03b91..98f2f0f53 100644 --- a/tools/Migrate_01/Migrations/PopulateGrainIndexes.cs +++ b/tools/Migrate_01/Migrations/PopulateGrainIndexes.cs @@ -82,11 +82,11 @@ namespace Migrate_01.Migrations { var rulesByApp = new Dictionary>(); - await statesForRules.ReadAllAsync((schema, version) => + await statesForRules.ReadAllAsync((rule, version) => { - if (!schema.IsDeleted) + if (!rule.IsDeleted) { - rulesByApp.GetOrAddNew(schema.AppId.Id).Add(schema.Id); + rulesByApp.GetOrAddNew(rule.AppId.Id).Add(rule.Id); } return TaskHelper.Done;