mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
save
This commit is contained in:
@@ -441,9 +441,15 @@ export class EventsService {
|
||||
for (let calendar of this.loggeduser.OwnerCalendars) {
|
||||
if (calendar.CalendarName == 'Oficial') {
|
||||
prO = await this.getAllMdOficialEvents(startdate, enddate).toPromise();
|
||||
if(!Array.isArray(prO)) {
|
||||
prO = []
|
||||
}
|
||||
}
|
||||
if(calendar.CalendarName == 'Pessoal') {
|
||||
prP = await this.getAllMdPessoalEvents(startdate, enddate).toPromise();
|
||||
if(!Array.isArray(prP)) {
|
||||
prP = []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -462,10 +468,16 @@ export class EventsService {
|
||||
|
||||
if(this.hasOwnOficial) {
|
||||
ownO = await this.getAllOwnOficialEvents(startdate, enddate).toPromise();
|
||||
if(!Array.isArray(ownO)) {
|
||||
ownO = []
|
||||
}
|
||||
}
|
||||
|
||||
if(this.hasOwnPessoal) {
|
||||
ownP = await this.getAllOwnPessoalEvents(startdate, enddate).toPromise();
|
||||
if(!Array.isArray(ownP)) {
|
||||
ownP = []
|
||||
}
|
||||
}
|
||||
|
||||
const resFinal = ownO.concat(ownP);
|
||||
|
||||
Reference in New Issue
Block a user