in src/app/dashboard/dashboard.component.ts [291:340]
onNewReminders() {
this.api.OnCreateTaskListener.subscribe(async (reminder) => {
//console.log('new comment', comment);
console.log('while refreshing ', this.month);
if (this.month != undefined) {
const monthlyupdatedresponse = await this.api.ListReminders({
user: {
eq: this.appcomponent.user.attributes.email
},
type: {
eq: frequency.MONTHLY
},
month: {
eq: this.month
}
});
this.dashboardMonthlyData = monthlyupdatedresponse.items;
const weeklyupdatedresponse = await this.api.ListReminders({
user: {
eq: this.appcomponent.user.attributes.email
},
type: {
eq: frequency.WEEKLY
},
week: {
eq: this.week
}
});
this.dashboardWeeklyData = weeklyupdatedresponse.items;
const yearlyupdatedresponse = await this.api.ListReminders({
user: {
eq: this.appcomponent.user.attributes.email
},
type: {
eq: frequency.YEARLY
},
year: {
eq: this.year
}
});
this.dashboardYearlyData = yearlyupdatedresponse.items;
}
});
}