From 3b1dbdede09d7561710ec10f58d5fb64eee5a5b0 Mon Sep 17 00:00:00 2001 From: Brant DeBow Date: Tue, 1 Apr 2025 10:56:07 -0400 Subject: [PATCH] Update handlers to use latest repositories --- .../Services/Implementations/SlackEventHandler.cs | 6 +++--- .../Services/Implementations/WebhookEventHandler.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/AdminConsole/Services/Implementations/SlackEventHandler.cs b/src/Core/AdminConsole/Services/Implementations/SlackEventHandler.cs index b22f8b9cc4..ace5e730da 100644 --- a/src/Core/AdminConsole/Services/Implementations/SlackEventHandler.cs +++ b/src/Core/AdminConsole/Services/Implementations/SlackEventHandler.cs @@ -8,12 +8,12 @@ namespace Bit.Core.Services; public class SlackEventHandler( IOrganizationIntegrationConfigurationRepository configurationRepository, - ISlackService slackService - ) : IEventMessageHandler + ISlackService slackService) + : IEventMessageHandler { public async Task HandleEventAsync(EventMessage eventMessage) { - var organizationId = eventMessage.OrganizationId ?? new Guid("f431e04c-f2c3-473c-8cd1-b291014b0236"); + var organizationId = eventMessage.OrganizationId ?? Guid.Empty; var configurations = await configurationRepository.GetConfigurationsAsync(organizationId, IntegrationType.Slack, eventMessage.Type); foreach (var configuration in configurations) diff --git a/src/Core/AdminConsole/Services/Implementations/WebhookEventHandler.cs b/src/Core/AdminConsole/Services/Implementations/WebhookEventHandler.cs index 8e38b6fdfe..dbd7ef1098 100644 --- a/src/Core/AdminConsole/Services/Implementations/WebhookEventHandler.cs +++ b/src/Core/AdminConsole/Services/Implementations/WebhookEventHandler.cs @@ -20,7 +20,7 @@ public class WebhookEventHandler( public async Task HandleEventAsync(EventMessage eventMessage) { - var organizationId = eventMessage.OrganizationId ?? new Guid("f431e04c-f2c3-473c-8cd1-b291014b0236"); + var organizationId = eventMessage.OrganizationId ?? Guid.Empty; var configurations = await configurationRepository.GetConfigurationsAsync(organizationId, IntegrationType.Webhook, eventMessage.Type);