@@ -12,4 +12,5 @@ export interface EmailRequestedEventPayload {
attachmentFileName: string
attachmentContentType: string
}>
+ userUuid?: string
}
@@ -329,6 +329,7 @@ export class DomainEventFactory implements DomainEventFactoryInterface {
}): EmailRequestedEvent {
return {
type: 'EMAIL_REQUESTED',
@@ -74,6 +74,7 @@ export interface DomainEventFactoryInterface {
}): EmailRequestedEvent
createDuplicateItemSyncedEvent(dto: { itemUuid: string; userUuid: string }): DuplicateItemSyncedEvent
createItemRevisionCreationRequested(dto: { itemUuid: string; userUuid: string }): ItemRevisionCreationRequestedEvent
@@ -81,6 +81,7 @@ export class EmailBackupRequestedEventHandler implements DomainEventHandlerInter
attachmentContentType: 'application/json',
},
],
+ userUuid: event.payload.userUuid,
}),
)