add log for endpoints

This commit is contained in:
Peter Maquiran
2024-06-17 17:04:42 +01:00
parent 58eee3ff93
commit 157ecdd10b
10 changed files with 123 additions and 42 deletions
@@ -169,8 +169,6 @@ export class EventsToApprovePage implements OnInit {
this.list = this.TaskService.reorderList(this.ordinance, list)
}
console.log(this.list)
}
@@ -217,6 +215,7 @@ export class EventsToApprovePage implements OnInit {
}
if(userId) {
let allEvents = await this.AgendaDataRepositoryService.eventToApproveList({
userId,
status: EEventFilterStatus.Pending
@@ -231,7 +230,6 @@ export class EventsToApprovePage implements OnInit {
this.eventoaprovacaostore.save(segment, [])
}
this.showLoader = false;
} else {
tracing.setAttribute('outcome', 'failed')
@@ -240,12 +238,14 @@ export class EventsToApprovePage implements OnInit {
if(!isHttpError(allEvents.error)) {
this.toastService._badRequest('Pedimos desculpa mas não foi possível executar a acção. Por favor, contacte o apoio técnico. #4')
}
this.showLoader = false;
}
} else {
tracing.setAttribute('calling', 'early')
console.warn('calling to early Events-to-approve/LoadToApproveEvents')
}
this.showLoader = false;
}
getFromDB() {}