From 65c462d3002108173092a02f8516b6fbfdd05b21 Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Wed, 11 Dec 2024 10:24:15 +0200 Subject: [PATCH] correct builder user on mention --- .../event-subjects/callout.published.event.subject.ts | 4 ++-- .../community.new.contributor.event.subject.ts | 4 ++-- .../event-subjects/contributor.mentioned.event.subject.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/service/src/services/event-subjects/callout.published.event.subject.ts b/service/src/services/event-subjects/callout.published.event.subject.ts index f52e488..c56c72e 100644 --- a/service/src/services/event-subjects/callout.published.event.subject.ts +++ b/service/src/services/event-subjects/callout.published.event.subject.ts @@ -6,9 +6,9 @@ import { BaseEventSubject } from './base.event.subject'; @Injectable() export class CalloutPublishedEventSubject extends BaseEventSubject { constructor( - private readonly inAppBuilder: CalloutPublishedInAppNotificationBuilder + private readonly calloutPublishedBuilder: CalloutPublishedInAppNotificationBuilder ) { super(); - this.registerBuilders([this.inAppBuilder]); + this.registerBuilders([this.calloutPublishedBuilder]); } } diff --git a/service/src/services/event-subjects/community.new.contributor.event.subject.ts b/service/src/services/event-subjects/community.new.contributor.event.subject.ts index 7946286..7a00c10 100644 --- a/service/src/services/event-subjects/community.new.contributor.event.subject.ts +++ b/service/src/services/event-subjects/community.new.contributor.event.subject.ts @@ -6,9 +6,9 @@ import { BaseEventSubject } from './base.event.subject'; @Injectable() export class CommunityNewContributorEventSubject extends BaseEventSubject { constructor( - private readonly inAppBuilder: CommunityNewContributorInAppNotificationBuilder + private readonly newContributorBuilder: CommunityNewContributorInAppNotificationBuilder ) { super(); - this.registerBuilders([this.inAppBuilder]); + this.registerBuilders([this.newContributorBuilder]); } } diff --git a/service/src/services/event-subjects/contributor.mentioned.event.subject.ts b/service/src/services/event-subjects/contributor.mentioned.event.subject.ts index 040ab08..fd691e6 100644 --- a/service/src/services/event-subjects/contributor.mentioned.event.subject.ts +++ b/service/src/services/event-subjects/contributor.mentioned.event.subject.ts @@ -1,14 +1,14 @@ import { Injectable } from '@nestjs/common'; import { CommunicationUserMentionEventPayload } from '@alkemio/notifications-lib'; -import { CalloutPublishedInAppNotificationBuilder } from '../builders/in-app'; +import { ContributorMentionedInAppNotificationBuilder } from '../builders/in-app'; import { BaseEventSubject } from './base.event.subject'; @Injectable() export class ContributorMentionedEventSubject extends BaseEventSubject { constructor( - private readonly inAppBuilder: CalloutPublishedInAppNotificationBuilder + private readonly contributorMentionedBuilder: ContributorMentionedInAppNotificationBuilder ) { super(); - this.registerBuilders([this.inAppBuilder]); + this.registerBuilders([this.contributorMentionedBuilder]); } }