Skip to content

Commit

Permalink
format the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamsidar07 committed Aug 21, 2024
1 parent b617d03 commit aea9a7e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/api/src/crm/contact/services/leadsquared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,18 @@ export class LeadSquaredService implements IContactService {
);

const leads = resp?.data['Leads'].map(
(lead: LeadSquaredContactResponse) =>
lead.LeadPropertyList.reduce((acc, { Attribute, Value }: { Attribute: string; Value: string }) => {
acc[Attribute] = Value;
return acc;
}, {} as LeadSquaredContactOutput)
);
(lead: LeadSquaredContactResponse) =>
lead.LeadPropertyList.reduce(
(
acc,
{ Attribute, Value }: { Attribute: string; Value: string },
) => {
acc[Attribute] = Value;
return acc;
},
{} as LeadSquaredContactOutput,
),
);

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

0 comments on commit aea9a7e

Please sign in to comment.