post generic event

This commit is contained in:
Peter Maquiran
2023-02-23 11:08:39 +01:00
parent 7e2011b642
commit 697a9699cc
2 changed files with 17 additions and 16 deletions
+10 -9
View File
@@ -866,16 +866,17 @@ export class EventsService {
let options: any;
const headers = [
this.headerSharedOficial,
this.headerSharedPessoal,
this.headerOwnPessoal,
this.headerOwnOficial
]
const header = headers.find((header)=> {
return header?.get('CalendarId')?.includes(CalendarId)
const Selectedcalendar = SessionStore.user.OwnerCalendars.concat(SessionStore.user.SharedCalendars).find((calendar) =>{
return calendar.CalendarId == CalendarId
})
let header = new HttpHeaders();
header = header.set('Authorization',SessionStore.user.BasicAuthKey);
header = header.set('CalendarId', Selectedcalendar.CalendarId);
header = header.set('CalendarRoleId', Selectedcalendar.CalendarRoleId);
console.log(Selectedcalendar)
options = {
headers: header,