File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
apps/app/src/actions/organization Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ export const completeInvitation = authActionClient
141141 const resend = new Resend ( process . env . RESEND_API_KEY ) ;
142142
143143 await resend . contacts . create ( {
144+ firstName : user . name ?. split ( " " ) [ 0 ] || "" ,
145+ lastName : user . name ?. split ( " " ) [ 1 ] || "" ,
144146 email : user . email ,
145147 unsubscribed : false ,
146148 audienceId : process . env . RESEND_AUDIENCE_ID ,
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ export const createOrganizationAction = authActionClient
6262 const resend = new Resend ( process . env . RESEND_API_KEY ) ;
6363
6464 await resend . contacts . create ( {
65+ firstName : session . user . name ?. split ( " " ) [ 0 ] || "" ,
66+ lastName : session . user . name ?. split ( " " ) [ 1 ] || "" ,
6567 email : session . user . email ,
6668 unsubscribed : false ,
6769 audienceId : process . env . RESEND_AUDIENCE_ID ,
You can’t perform that action at this time.
0 commit comments