clean data
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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(){
|
||||
//
|
||||
//
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user