From 245ee3214ac918d37eb8c86098a5f98e33620b7f Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Thu, 13 Jun 2024 16:15:45 +0100 Subject: [PATCH] fix calendar list --- src/app/pages/agenda/agenda.page.ts | 2 +- .../Repositorys/Agenda/agenda-data-repository.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/agenda/agenda.page.ts b/src/app/pages/agenda/agenda.page.ts index a80c1e097..de23e61ea 100644 --- a/src/app/pages/agenda/agenda.page.ts +++ b/src/app/pages/agenda/agenda.page.ts @@ -705,7 +705,7 @@ export class AgendaPage implements OnInit { calendarOwnerName: selectedCalendar.wxFullName, endDate: endTime.toISOString(), startDate: startTime.toISOString(), - status: -1 + status: 3 }) if(response.isOk()) { diff --git a/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts b/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts index 91dc8d03b..bdf44edf5 100644 --- a/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts +++ b/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts @@ -67,7 +67,7 @@ export class AgendaDataRepositoryService { } - async EventList({ userId, startDate, endDate, status = 2, category = null, type = null, calendarOwnerName = '' }) { + async EventList({ userId, startDate, endDate, status = 3, category = null, type = null, calendarOwnerName = '' }) { try { const result = await this.agendaDataService.getEvents(userId, startDate, endDate, status, category, type).pipe( @@ -81,7 +81,7 @@ export class AgendaDataRepositoryService { } } - async eventToApproveList({ userId, startDate = null, endDate = null, status = 0, category = null, type = null, calendarOwnerName = '' }) { + async eventToApproveList({ userId, startDate = null, endDate = null, status = 1, category = null, type = null, calendarOwnerName = '' }) { try { const result = await this.agendaDataService.getEvents(userId, startDate = null, endDate = null, status, category = null, type = null).pipe(