mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix ownertype and category type
This commit is contained in:
@@ -320,19 +320,13 @@ export class TaskService {
|
||||
// PR dont have event to approve
|
||||
/* if(this.SessionStore.user.Profile != 'PR') { */
|
||||
try {
|
||||
for(let calendar of this.eventService.calendarNamesAry) {
|
||||
|
||||
let userId;
|
||||
const list = await this.AgendaDataRepositoryService.geCalendars()
|
||||
|
||||
if(calendar == 'Meu calendario') {
|
||||
userId = SessionStore.user.UserId
|
||||
|
||||
} else {
|
||||
userId = calendar.OwnerUserId
|
||||
}
|
||||
for(let calendar of list) {
|
||||
|
||||
let allEvents = await this.AgendaDataRepositoryService.eventToApproveList({
|
||||
userId,
|
||||
userId: calendar.wxUserId,
|
||||
status: EEventFilterStatus.Pending
|
||||
}, tracing)
|
||||
|
||||
@@ -342,9 +336,9 @@ export class TaskService {
|
||||
let eventsList = []
|
||||
if(allEvents.value.length >= 1) {
|
||||
eventsList = this.sortService.sortArrayByDate(allEvents.value).reverse();
|
||||
this.eventoaprovacaostore.save(userId, eventsList)
|
||||
this.eventoaprovacaostore.save(calendar.wxUserId as any, eventsList)
|
||||
} else {
|
||||
this.eventoaprovacaostore.save(userId, [])
|
||||
this.eventoaprovacaostore.save(calendar.wxUserId as any, [])
|
||||
}
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user