From bebf2b63e3f4298f74034af9344134d8e6b819f0 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 12 Sep 2024 19:44:36 -0400 Subject: [PATCH] reduce contact data --- src/app/store/contacts-data.service.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/app/store/contacts-data.service.ts b/src/app/store/contacts-data.service.ts index 7aa6aba..8fa97ce 100644 --- a/src/app/store/contacts-data.service.ts +++ b/src/app/store/contacts-data.service.ts @@ -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)