File tree 1 file changed +12
-6
lines changed
packages/api/src/crm/contact/services/leadsquared
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,18 @@ export class LeadSquaredService implements IContactService {
123
123
) ;
124
124
125
125
const leads = resp ?. data [ 'Leads' ] . map (
126
- ( lead : LeadSquaredContactResponse ) =>
127
- lead . LeadPropertyList . reduce ( ( acc , { Attribute, Value } : { Attribute : string ; Value : string } ) => {
128
- acc [ Attribute ] = Value ;
129
- return acc ;
130
- } , { } as LeadSquaredContactOutput )
131
- ) ;
126
+ ( lead : LeadSquaredContactResponse ) =>
127
+ lead . LeadPropertyList . reduce (
128
+ (
129
+ acc ,
130
+ { Attribute, Value } : { Attribute : string ; Value : string } ,
131
+ ) => {
132
+ acc [ Attribute ] = Value ;
133
+ return acc ;
134
+ } ,
135
+ { } as LeadSquaredContactOutput ,
136
+ ) ,
137
+ ) ;
132
138
133
139
//this.logger.log('CONTACTS LEADSQUARED ' + JSON.stringify(resp.data.data));
134
140
this . logger . log ( `Synced leadsquared contacts !` ) ;
You can’t perform that action at this time.
0 commit comments