From 6468e3020e6cc89b6ad48024ba2b9366d8c855d0 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 13 Sep 2024 04:27:32 -0400 Subject: [PATCH] clean data --- src/app/services/wrench.service.ts | 2 +- src/app/store/contacts-data.service.ts | 58 ++++---------------------- 2 files changed, 9 insertions(+), 51 deletions(-) diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts index 84c7467..0b90d4c 100644 --- a/src/app/services/wrench.service.ts +++ b/src/app/services/wrench.service.ts @@ -205,7 +205,7 @@ export class WrenchService { } processUsersContacts(usrData) { - alert("FFFFf=>GOT HERE"); + alert("Server Call About Here =>GOT HERE"); return this.getPostData("cachecontacts", usrData); } getUserWallets(usrData) { diff --git a/src/app/store/contacts-data.service.ts b/src/app/store/contacts-data.service.ts index 95e24af..b9f3d2f 100644 --- a/src/app/store/contacts-data.service.ts +++ b/src/app/store/contacts-data.service.ts @@ -24,7 +24,6 @@ export class ContactsDataService { else{ return; } - // debugger; // phones: true, Contacts.getContacts({projection: { name: true, @@ -43,7 +42,7 @@ export class ContactsDataService { }; pPesult:any; async cacheContactsForAccount(contactResult){ - alert('AAAA->001'); + //alert('AAAA->001'); this.usrData = {action:22010, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, @@ -52,46 +51,15 @@ export class ContactsDataService { } const myString = JSON.stringify(contactResult.contacts); - // const mySL = myString.length; - // let myString2=''; - // let myString3=''; - // - // const myString1 = myString.substring(0,3000); - -let arrC=[]; - alert(myString.length); - contactResult.contacts.macro( item=>{ + alert(myString); - - arrC.push({ - contactid: item.contactid, - given_name: item.name.given, - email: item.emails.address - } ) - - this.usrData = {action:22010, - member_id: this.sessionDataProviderService.member_id, - uid: this.sessionDataProviderService.member_uid, - sessionid: this.sessionDataProviderService.session , - raw_contacts: JSON.stringify(arrC) - } - - - }) - - // this.usrData = {action:22010, - // member_id: this.sessionDataProviderService.member_id, - // uid: this.sessionDataProviderService.member_uid, - // sessionid: this.sessionDataProviderService.session , - // raw_contacts: myString - // } - - //JSON.stringify(contactResult.contacts) - - alert(this.usrData.uid); - alert( JSON.stringify( contactResult.toString()) ); - alert(this.usrData.raw_contacts.toString()); + this.usrData = {action:22010, + member_id: this.sessionDataProviderService.member_id, + uid: this.sessionDataProviderService.member_uid, + sessionid: this.sessionDataProviderService.session , + raw_contacts: myString + } this.wrenchService.processUsersContacts(this.usrData).subscribe( pPesult => { @@ -100,14 +68,4 @@ let arrC=[]; } ); } - - suggestionTotal:number = 0; - familyPendingTotalData:any; - familyPendingData: []; - - - // async getFamilyPeningData(){ - // - // - // } }