reduce contact data
This commit is contained in:
@@ -29,7 +29,6 @@ export class ContactsDataService {
|
||||
Contacts.getContacts({projection: {
|
||||
name: true,
|
||||
phones: true,
|
||||
image: true,
|
||||
emails: true
|
||||
}}).then( result=>{
|
||||
this.cacheContactsForAccount(result);
|
||||
@@ -50,15 +49,24 @@ export class ContactsDataService {
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
raw_contacts: JSON.stringify(contactResult.contacts) }
|
||||
raw_contacts: JSON.stringify(contactResult.contacts)
|
||||
}
|
||||
|
||||
const myString = JSON.stringify(contactResult.contacts);
|
||||
// const mySL = myString.length;
|
||||
// let myString2='';
|
||||
// let myString3='';
|
||||
//
|
||||
// const myString1 = myString.substring(0,3000);
|
||||
|
||||
|
||||
alert(myString.length);
|
||||
this.usrData = {action:22010,
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
raw_contacts: myString.substring(0,300) }
|
||||
raw_contacts: myString
|
||||
}
|
||||
|
||||
//JSON.stringify(contactResult.contacts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user