Skip to content

Commit

Permalink
Merge pull request #164 from companieshouse/IDVA6-2232-bug-fix
Browse files Browse the repository at this point in the history
IDVA6-2232: Bug fix
  • Loading branch information
krishna-patel-ch authored Feb 24, 2025
2 parents d8fe480 + 6951095 commit a1eed9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public Mono<Void> sendInviteCancelledEmail( final String xRequestId, final Strin
.map( AssociationDao::getUserId )
.map( usersService::fetchUserDetails )
.map( User::getEmail )
.switchIfEmpty( Mono.just( associationDao.getUserEmail() ) )
.switchIfEmpty( Mono.just( associationDao ).map( AssociationDao::getUserEmail ) )
.map( inviteeEmail -> new InviteCancelledEmailBuilder()
.setRecipientEmail( inviteeEmail )
.setCancelledBy( cancelledByDisplayName ) )
Expand Down

0 comments on commit a1eed9c

Please sign in to comment.