mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
remove unsude code
This commit is contained in:
@@ -94,7 +94,7 @@ export class AgendaDataRepositoryService {
|
||||
})
|
||||
}
|
||||
|
||||
async EventList({ userId, startDate, endDate, status = EEventFilterStatus.Approved, category = null, type = null, calendarOwnerName = '' }, tracing?: TracingType) {
|
||||
async EventList({ userId, startDate, endDate, status = EEventFilterStatus.Approved, category = null, type = null}, tracing?: TracingType) {
|
||||
|
||||
const result = await this.agendaDataService.getEvents({userId, startDate, endDate, status, category, type}, tracing)
|
||||
|
||||
@@ -113,7 +113,7 @@ export class AgendaDataRepositoryService {
|
||||
} else {
|
||||
profile = "pr"
|
||||
}
|
||||
const listToPresent = ListEventMapper.toDomain(response, calendarOwnerName, userId)
|
||||
const listToPresent = ListEventMapper.toDomain(response)
|
||||
|
||||
const map : EventListStore[] = listToPresent.map( element => {
|
||||
return {
|
||||
@@ -133,14 +133,14 @@ export class AgendaDataRepositoryService {
|
||||
const events = this.utils.getAllEvents(year)
|
||||
this.NativeNotificationService.scheduleNotifications(events)
|
||||
|
||||
this.memoryStore.pipe(
|
||||
select(selectEventsInRange(startDate, endDate, userId))
|
||||
).subscribe((localList)=> {
|
||||
// console.log({localList})
|
||||
});
|
||||
// this.memoryStore.pipe(
|
||||
// select(selectEventsInRange(startDate, endDate, userId))
|
||||
// ).subscribe((localList)=> {
|
||||
// // console.log({localList})
|
||||
// });
|
||||
|
||||
this.memoryStore.dispatch(removeRangeForCalendar({ startDate, endDate, userId }));
|
||||
this.memoryStore.dispatch(pushEvent({ eventsList:listToPresent as any, userId, profile }));
|
||||
// this.memoryStore.dispatch(removeRangeForCalendar({ startDate, endDate, userId }));
|
||||
// this.memoryStore.dispatch(pushEvent({ eventsList:listToPresent as any, userId, profile }));
|
||||
|
||||
return listToPresent
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user