fix data calls
This commit is contained in:
@@ -22,7 +22,7 @@ export class ContactsDataService {
|
||||
//return;
|
||||
}
|
||||
else{
|
||||
// return;
|
||||
return;
|
||||
}
|
||||
debugger;
|
||||
|
||||
@@ -32,31 +32,8 @@ export class ContactsDataService {
|
||||
image: true,
|
||||
emails: true
|
||||
}}).then( result=>{
|
||||
// alert("0001");
|
||||
console.log(result);
|
||||
this.cacheContactsForAccount(result);
|
||||
});
|
||||
|
||||
// const retrieveListOfContacts = async () => {
|
||||
// const projection = {
|
||||
// // Specify which fields should be retrieved.
|
||||
// name: true,
|
||||
// phones: true,
|
||||
// image: true,
|
||||
// emails: true,
|
||||
// postalAddresses: true,
|
||||
// };
|
||||
//
|
||||
// const result = await Contacts.getContacts({
|
||||
// projection,
|
||||
// }).then(result=>{
|
||||
// alert("0002");
|
||||
// console.log(result);
|
||||
// result.contacts
|
||||
// this.cacheContactsForAccount(result);
|
||||
// });
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
usrData: {
|
||||
@@ -73,7 +50,7 @@ export class ContactsDataService {
|
||||
member_id: this.sessionDataProviderService.member_id,
|
||||
uid: this.sessionDataProviderService.member_uid,
|
||||
sessionid: this.sessionDataProviderService.session ,
|
||||
raw_contacts: contactResult.contacts }
|
||||
raw_contacts: JSON.stringify(contactResult.contacts) }
|
||||
|
||||
alert(this.usrData.uid);
|
||||
alert( JSON.stringify( contactResult.toString()) );
|
||||
|
||||
Reference in New Issue
Block a user