Map webhook id property

This commit is contained in:
Bjarne Fyrstenborg
2023-12-14 00:26:23 +01:00
committed by Michael Latouche
parent f1db40392f
commit 62bc748a87

View File

@@ -1,4 +1,4 @@
using Umbraco.Cms.Core.Mapping;
using Umbraco.Cms.Core.Mapping;
using Umbraco.Cms.Core.Models;
using Umbraco.Cms.Core.Webhooks;
using Umbraco.Cms.Web.Common.Models;
@@ -21,6 +21,7 @@ public class WebhookMapDefinition : IMapDefinition
target.Events = source.Events.Select(x => x.Alias).ToArray();
target.Url = source.Url;
target.Enabled = source.Enabled;
target.Id = source.Id;
target.Key = source.Key ?? Guid.NewGuid();
target.Headers = source.Headers;
}