Skip to content

Commit

Permalink
feat: add contributing md
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Oct 30, 2023
1 parent 3ec52d4 commit 866dcad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/api/src/crm/contact/services/contact.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ export class ContactService {

async addContact(createContactDto: CreateContactDto, integrationId: string) {

Check warning on line 21 in packages/api/src/crm/contact/services/contact.service.ts

View workflow job for this annotation

GitHub Actions / build-api (16.x)

'createContactDto' is defined but never used

Check warning on line 21 in packages/api/src/crm/contact/services/contact.service.ts

View workflow job for this annotation

GitHub Actions / build-api (16.x)

'integrationId' is defined but never used
//TODO: add createContact info body to DB => addToDbBackup()
// 1. insert job_db => status: INITIALIZED uuid_job
// uuid_job
// 2. insert inside crm_contact DB uuid_job
// uuid_contact
// update job_db => status: WRITTEN

//TODO: get the destination provider => call destinationCRMInDb()
const dest = {};
let resp;
let resp; //{data: {freshsales rep}, code: };
switch (dest) {
case 'freshsales':
resp = await this.freshsales.addContact();
Expand All @@ -48,6 +54,8 @@ export class ContactService {
break;
}
//TODO: sanitize the resp to normalize it

//3. update job_db => status: SUCCESS/FAIL
return resp;
}
}

0 comments on commit 866dcad

Please sign in to comment.