From 1a03cf9bbc59a5a1676958a6d114d6c8169aa08e Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 13 Sep 2024 03:49:08 -0400 Subject: [PATCH] reducing the contact data --- src/app/store/contacts-data.service.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/app/store/contacts-data.service.ts b/src/app/store/contacts-data.service.ts index 8fa97ce..61278d0 100644 --- a/src/app/store/contacts-data.service.ts +++ b/src/app/store/contacts-data.service.ts @@ -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)