reducing the contact data
This commit is contained in:
@@ -24,11 +24,10 @@ export class ContactsDataService {
|
||||
else{
|
||||
return;
|
||||
}
|
||||
debugger;
|
||||
|
||||
// debugger;
|
||||
// phones: true,
|
||||
Contacts.getContacts({projection: {
|
||||
name: true,
|
||||
phones: true,
|
||||
emails: true
|
||||
}}).then( result=>{
|
||||
this.cacheContactsForAccount(result);
|
||||
@@ -59,13 +58,22 @@ export class ContactsDataService {
|
||||
//
|
||||
// const myString1 = myString.substring(0,3000);
|
||||
|
||||
let arrC=[];
|
||||
|
||||
alert(myString.length);
|
||||
// contactResult.contacts.macro( item=>{
|
||||
// arrC.push({
|
||||
// contactid: item.contactid,
|
||||
// given_name: item.name.given
|
||||
// }
|
||||
// )
|
||||
// })
|
||||
|
||||
this.usrData = {action:22010,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
raw_contacts: myString
|
||||
raw_contacts: myString
|
||||
}
|
||||
|
||||
//JSON.stringify(contactResult.contacts)
|
||||
|
||||
Reference in New Issue
Block a user