From 946597cfd40025464e74dd5cccf7f26c85cb87d5 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 12 Sep 2024 15:44:13 -0400 Subject: [PATCH] alert added --- src/app/store/contacts-data.service.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/store/contacts-data.service.ts b/src/app/store/contacts-data.service.ts index fbc3a47..3f3c3cb 100644 --- a/src/app/store/contacts-data.service.ts +++ b/src/app/store/contacts-data.service.ts @@ -22,19 +22,21 @@ export class ContactsDataService { //return; } else{ - return; + // return; } - /* + debugger; + Contacts.getContacts({projection: { name: true, phones: true, image: true, emails: true }}).then( result=>{ - console.log(result); - this.cacheContactsForAccount(result); + alert("0001"); + console.log(result); + this.cacheContactsForAccount(result); }); -*/ + const retrieveListOfContacts = async () => { const projection = { // Specify which fields should be retrieved. @@ -48,7 +50,9 @@ export class ContactsDataService { const result = await Contacts.getContacts({ projection, }).then(result=>{ + alert("0002"); console.log(result); + result.contacts this.cacheContactsForAccount(result); }); }