Browse Source

Merge branch 'v3_schema_sync'

pull/345/head
Sebastian Stehle 7 years ago
parent
commit
9f3b7793ef
  1. 2
      src/Squidex.Domain.Apps.Entities/Rules/RuleGrain.cs
  2. 6
      tools/Migrate_01/Migrations/PopulateGrainIndexes.cs

2
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.");
}
}

6
tools/Migrate_01/Migrations/PopulateGrainIndexes.cs

@ -82,11 +82,11 @@ namespace Migrate_01.Migrations
{
var rulesByApp = new Dictionary<Guid, HashSet<Guid>>();
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;

Loading…
Cancel
Save