Skip to content

Commit

Permalink
feat: Added lead source (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik authored Jun 14, 2024
2 parents 8587e71 + 0f1cbf2 commit 081c670
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/app/auth/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export class AuthService {
'First Name': user.firstName,
'Last Name': user.lastName,
'Lead Email': user.email,
'Lead Source': 'Github Signup',
});
userCreated = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class RegisterUser {
'First Name': user.firstName,
'Last Name': user.lastName,
'Lead Email': user.email,
'Lead Source': 'Website Signup',
});

const token = this.authService.getSignedToken({
Expand Down
2 changes: 2 additions & 0 deletions apps/api/src/app/shared/services/lead.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface ILeadInformation {
'First Name': string;
'Last Name': string;
'Lead Email': string;
'Lead Source': 'Website Signup' | 'Github Signup';
}

@Injectable()
Expand Down Expand Up @@ -98,6 +99,7 @@ export class LeadService {
Last_Name: data['Last Name'],
First_Name: data['First Name'],
Email: data['Lead Email'],
Lead_Source: data['Lead Source'],
},
],
},
Expand Down

0 comments on commit 081c670

Please sign in to comment.