From 0f1cbf2a6e4e78cfa64ed478df8ea9a4768333e2 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Fri, 14 Jun 2024 17:04:10 +0530 Subject: [PATCH] feat: Added lead source --- apps/api/src/app/auth/services/auth.service.ts | 1 + .../app/auth/usecases/register-user/register-user.usecase.ts | 1 + apps/api/src/app/shared/services/lead.service.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/apps/api/src/app/auth/services/auth.service.ts b/apps/api/src/app/auth/services/auth.service.ts index f70183f28..b447fa37e 100644 --- a/apps/api/src/app/auth/services/auth.service.ts +++ b/apps/api/src/app/auth/services/auth.service.ts @@ -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; } diff --git a/apps/api/src/app/auth/usecases/register-user/register-user.usecase.ts b/apps/api/src/app/auth/usecases/register-user/register-user.usecase.ts index 5c32a3ae5..1d6e71893 100644 --- a/apps/api/src/app/auth/usecases/register-user/register-user.usecase.ts +++ b/apps/api/src/app/auth/usecases/register-user/register-user.usecase.ts @@ -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({ diff --git a/apps/api/src/app/shared/services/lead.service.ts b/apps/api/src/app/shared/services/lead.service.ts index 2f09349d4..e66bd34d0 100644 --- a/apps/api/src/app/shared/services/lead.service.ts +++ b/apps/api/src/app/shared/services/lead.service.ts @@ -5,6 +5,7 @@ interface ILeadInformation { 'First Name': string; 'Last Name': string; 'Lead Email': string; + 'Lead Source': 'Website Signup' | 'Github Signup'; } @Injectable() @@ -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'], }, ], },