mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
fix(auth): remove not needed event from factory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user