in src/app/monthlytasks/monthlytasks.component.ts [138:183]
commentAction() {
//throw new Error("Method not implemented.");
this.api.OnCreateCommentListener.subscribe(async (comment) => {
//console.log('new comment', comment);
//console.log('while refreshing ', this.month);
if (this.month != undefined) {
const response = await this.api.ListReminders({
user: {
eq: this.appcomponent.user.attributes.email
},
type: {
eq: frequency.MONTHLY
},
month: {
eq: this.month
}
});
this.allReminders = response.items;
}
});
this.api.OnDeleteCommentListener.subscribe(async (comment) => {
//console.log('new comment', comment);
console.log('while refreshing ', this.month);
if (this.month != undefined) {
const response = await this.api.ListReminders({
user: {
eq: this.appcomponent.user.attributes.email
},
type: {
eq: frequency.MONTHLY
},
month: {
eq: this.month
}
});
this.allReminders = response.items;
}
});
}