Skip to content

Commit aea9a7e

Browse files
committed
format the code
1 parent b617d03 commit aea9a7e

File tree

1 file changed

+12
-6
lines changed
  • packages/api/src/crm/contact/services/leadsquared

1 file changed

+12
-6
lines changed

packages/api/src/crm/contact/services/leadsquared/index.ts

+12-6
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,18 @@ export class LeadSquaredService implements IContactService {
123123
);
124124

125125
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+
);
132138

133139
//this.logger.log('CONTACTS LEADSQUARED ' + JSON.stringify(resp.data.data));
134140
this.logger.log(`Synced leadsquared contacts !`);

0 commit comments

Comments
 (0)