fix(auth): remove not needed event from factory

This commit is contained in:
Karol Sójko
2022-12-07 07:12:21 +01:00
parent cb9499b87f
commit 2542cf6f9a
2 changed files with 0 additions and 34 deletions
@@ -21,7 +21,6 @@ import {
ExitDiscountApplyRequestedEvent,
UserContentSizeRecalculationRequestedEvent,
MuteEmailsSettingChangedEvent,
EmailSubscriptionSyncRequestedEvent,
} from '@standardnotes/domain-events'
import { Predicate, PredicateVerificationResult } from '@standardnotes/predicates'
import { TimerInterface } from '@standardnotes/time'
@@ -34,29 +33,6 @@ import { DomainEventFactoryInterface } from './DomainEventFactoryInterface'
export class DomainEventFactory implements DomainEventFactoryInterface {
constructor(@inject(TYPES.Timer) private timer: TimerInterface) {}
createEmailSubscriptionSyncRequestedEvent(dto: {
username: string
userUuid: string
subscriptionPlanName: string | null
muteFailedBackupsEmails: boolean
muteFailedCloudBackupsEmails: boolean
muteMarketingEmails: boolean
muteSignInEmails: boolean
}): EmailSubscriptionSyncRequestedEvent {
return {
type: 'EMAIL_SUBSCRIPTION_SYNC_REQUESTED',
createdAt: this.timer.getUTCDate(),
meta: {
correlation: {
userIdentifier: dto.userUuid,
userIdentifierType: 'uuid',
},
origin: DomainEventService.Auth,
},
payload: dto,
}
}
createMuteEmailsSettingChangedEvent(dto: {
username: string
mute: boolean
@@ -19,7 +19,6 @@ import {
ExitDiscountApplyRequestedEvent,
UserContentSizeRecalculationRequestedEvent,
MuteEmailsSettingChangedEvent,
EmailSubscriptionSyncRequestedEvent,
} from '@standardnotes/domain-events'
import { InviteeIdentifierType } from '../SharedSubscription/InviteeIdentifierType'
@@ -98,13 +97,4 @@ export interface DomainEventFactoryInterface {
mute: boolean
emailSubscriptionRejectionLevel: string
}): MuteEmailsSettingChangedEvent
createEmailSubscriptionSyncRequestedEvent(dto: {
username: string
userUuid: string
subscriptionPlanName: string | null
muteFailedBackupsEmails: boolean
muteFailedCloudBackupsEmails: boolean
muteMarketingEmails: boolean
muteSignInEmails: boolean
}): EmailSubscriptionSyncRequestedEvent
}