Skip to content

Commit

Permalink
Fix rule creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Sep 14, 2022
1 parent e5ec186 commit a4bc774
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/Squidex.CLI/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Squidex/squidex/</PackageProjectUrl>
<PackageTags>Squidex HeadlessCMS</PackageTags>
<Version>8.20</Version>
<Version>8.21</Version>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ internal static class Extensions
{
public static UpdateExtendableRuleDto ToUpdate(this RuleModel model)
{
return SimpleMapper.Map(model, new UpdateExtendableRuleDto());
var result = SimpleMapper.Map(model, new UpdateExtendableRuleDto());

result.Action = model.Action;

return result;
}

public static CreateExtendableRuleDto ToCreate(this RuleModel model)
{
return SimpleMapper.Map(model, new CreateExtendableRuleDto());
var result = SimpleMapper.Map(model, new CreateExtendableRuleDto());

result.Action = model.Action;

return result;
}

public static string TypeName(this RuleTriggerDto trigger)
Expand Down

0 comments on commit a4bc774

Please sign in to comment.