Skip to content

Commit

Permalink
fix(auth): add user uuid context to sign in emails log context
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Dec 12, 2023
1 parent 398c10c commit cfbe2bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/auth/src/Domain/Event/DomainEventFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export class DomainEventFactory implements DomainEventFactoryInterface {
level: string
body: string
subject: string
userUuid?: string
}): EmailRequestedEvent {
return {
type: 'EMAIL_REQUESTED',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export interface DomainEventFactoryInterface {
level: string
body: string
subject: string
userUuid?: string
}): EmailRequestedEvent
createListedAccountRequestedEvent(userUuid: string, userEmail: string): ListedAccountRequestedEvent
createUserRegisteredEvent(dto: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class UserInvitedToSharedVaultEventHandler implements DomainEventHandlerI
subject: getSubject(),
messageIdentifier: 'USER_INVITED_TO_SHARED_VAULT',
userEmail: user.email,
userUuid: user.uuid,
}),
)
}
Expand Down
1 change: 1 addition & 0 deletions packages/auth/src/Domain/UseCase/SignIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class SignIn implements UseCaseInterface {
),
messageIdentifier: 'SIGN_IN',
subject: getSubject(user.email),
userUuid: user.uuid,
}),
)
} catch (error) {
Expand Down

0 comments on commit cfbe2bb

Please sign in to comment.