add role Id to event service

This commit is contained in:
Peter Maquiran
2023-02-17 11:02:19 +01:00
parent 207a207398
commit f546ee566b
2 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -257,7 +257,7 @@ export class EventsService {
this.calendarNames[sharedCalendar.CalendarId] = e.FullName
this.myCalendarNames[sharedCalendar.CalendarId] = e.FullName
console.log('ROLE',e.Role, e.FullName)
console.log('ROLE',e.Role, e.FullName, e)
if(!this.calendarNamesAry.find(x => x.Role == e.Role)) {
/* if(e.Role == "Presidente da República") {
@@ -273,11 +273,11 @@ export class EventsService {
//this.calendarRole.push(e.Role)
let objectShared = {
"Fullname": e.FullName,
"Role": e.Role
"Role": e.Role,
"RoleId": sharedCalendar.CalendarRoleId
}
this.calendarNamesAry.push(objectShared)
this.calendarNamesAry.push(objectShared)
console.log('objectShared',this.calendarNamesAry)
this.calendarNamesType[e.FullName] = {}