@@ -34,26 +34,20 @@ app.get("/oauth-callback", async (req: Request, res: Response):Promise =>
34
34
if ( authInfo ) {
35
35
const accessToken = authInfo . accessToken ;
36
36
37
- logger . info ( { type : 'Prisma' , logMessage : { message :'OAuth complete! Setting up integration properties...' } } )
38
- // console.log('OAuth complete! Setting up integration properties...')
39
- logger . info ( { type : 'Prisma' , logMessage : { message :'Creating contact property group...' } } )
40
- // console.log('\nCreating contact property group...');
37
+ logger . info ( { type : 'HubSpot' , logMessage : { message :'OAuth complete! Setting up integration properties...' } } )
38
+ logger . info ( { type : 'HubSpot' , logMessage : { message :'Creating contact property group...' } } )
41
39
await createPropertyGroupForContacts ( accessToken ) ;
42
40
43
- logger . info ( { type : 'Prisma' , logMessage : { message :'Creating company property group...' } } )
44
- // console.log('\nCreating company property group...');
41
+ logger . info ( { type : 'HubSpot' , logMessage : { message :'Creating company property group...' } } )
45
42
await createPropertyGroupForCompanies ( accessToken ) ;
46
43
47
- logger . info ( { type : 'Prisma' , logMessage : { message :'Creating required contact property...' } } )
48
- // console.log('\nCreating required contact property...');
44
+ logger . info ( { type : 'HubSpot' , logMessage : { message :'Creating required contact property...' } } )
49
45
await createRequiredContactProperty ( accessToken ) ;
50
46
51
- logger . info ( { type : 'Prisma' , logMessage : { message :'Creating custom contact ID property...' } } )
52
- // console.log('\nCreating custom contact ID property...');
47
+ logger . info ( { type : 'HubSpot' , logMessage : { message :'Creating custom contact ID property...' } } )
53
48
await createContactIdProperty ( accessToken ) ;
54
49
55
- logger . info ( { type : 'Prisma' , logMessage : { message :'Creating custom company ID property...' } } )
56
- // console.log('\nCreating custom company ID property...');
50
+ logger . info ( { type : 'HubSpot' , logMessage : { message :'Creating custom company ID property...' } } )
57
51
await createCompanyIdProperty ( accessToken ) ;
58
52
59
53
res . redirect ( `http://localhost:${ PORT - 1 } /` ) ;
0 commit comments