Skip to content

Commit 1b7aeeb

Browse files
authored
Merge pull request #35 from umbraco/v9/bugfix/register-notification
Add notification registration for Umbraco 9
2 parents 0dc35e9 + 02d2f40 commit 1b7aeeb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Umbraco.Forms.Integrations.Automation.Zapier/Umbraco.Forms.Integrations.Automation.Zapier.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageIconUrl></PackageIconUrl>
1212
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Forms.Integrations</PackageProjectUrl>
1313
<RepositoryUrl>https://github.com/umbraco/Umbraco.Forms.Integrations</RepositoryUrl>
14-
<Version>1.0.0</Version>
14+
<Version>1.0.1</Version>
1515
<Authors>Umbraco HQ</Authors>
1616
<Company>Umbraco</Company>
1717
</PropertyGroup>

src/Umbraco.Forms.Integrations.Automation.Zapier/ZapierFormsComposer.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
using Umbraco.Cms.Core.Composing;
55
using Umbraco.Cms.Core.DependencyInjection;
6+
using Umbraco.Forms.Core.Services.Notifications;
7+
using Umbraco.Forms.Integrations.Automation.Zapier.Components;
68
using Umbraco.Forms.Integrations.Automation.Zapier.Configuration;
79
using Umbraco.Forms.Integrations.Automation.Zapier.Helpers;
810
#else
@@ -25,6 +27,8 @@ public void Compose(IUmbracoBuilder builder)
2527
.AddOptions<ZapierSettings>()
2628
.Bind(builder.Config.GetSection(Constants.Configuration.Settings));
2729

30+
builder.AddNotificationHandler<RecordCreatingNotification, NewFormSubmittedNotification>();
31+
2832
builder.Services.AddSingleton<ZapierFormService>();
2933

3034
builder.Services.AddSingleton<ZapierFormSubscriptionHookService>();

0 commit comments

Comments
 (0)