Skip to content

Commit

Permalink
less logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jul 1, 2020
1 parent 9cd5f2e commit 3a451c4
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class ServiceRecommendations extends LightningElement {

handleRequestRecommendations() {
console.log('getting recommendations');
console.log('recorid Id' + this.recordId);
console.log('record Id' + this.recordId);
getRecommendations({ contactId: this.recordId })
.then((result) => {
window.console.log('success');
Expand Down Expand Up @@ -152,25 +152,24 @@ export default class ServiceRecommendations extends LightningElement {
handleSubscribe() {
const context = this;
const messageCallback = function (response) {
console.log(JSON.stringify(response));
console.log(context.recordId);
// console.log(JSON.stringify(response));
// console.log(context.recordId);
if (response.data.payload.ContactId__c === context.recordId) {
context.handleRequestRecommendations();
}
};
subscribe(eventChannel, -1, messageCallback).then((response) => {
// Response contains the subscription information on subscribe call
console.log(
'Subscription request sent to: ',
JSON.stringify(response.channel)
);
// console.log(
// 'Subscription request sent to: ',
// JSON.stringify(response.channel)
// );
this.subscription = response;
});
}

renderedCallback() {
this.handleSubscribe();
console.log('version 9');
}

disconnectedCallback() {
Expand Down

0 comments on commit 3a451c4

Please sign in to comment.