Map webhook id property
This commit is contained in:
committed by
Michael Latouche
parent
f1db40392f
commit
62bc748a87
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user