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); }); }