Fix get files

This commit is contained in:
Peter Maquiran
2021-08-13 14:59:17 +01:00
parent 6f6b05b359
commit ce25fc8e4a
9 changed files with 73 additions and 86 deletions
@@ -56,15 +56,9 @@ export class ExpedientePage implements OnInit {
this.skeletonLoader = true
try {
const expedientePr: object[] = await this.processes.GetTasksList("Expediente", false).toPromise()
const expedienteMD: object[] = await this.processes.GetTasksList("Expediente", false).toPromise()
const expediente: object[] = await this.processes.GetTasksList("Expediente", false).toPromise()
const result = expedientePr.concat(expedienteMD)
console.log('result', result);
console.log('expedientePr', expedientePr)
console.log('expedienteMD', expedienteMD)
const result = expediente
this.taskslist = new Array();
let res = result.reverse().filter((data: any) => data.workflowInstanceDataFields.Status == "Active");
@@ -87,9 +81,11 @@ export class ExpedientePage implements OnInit {
}
this.taskslist.push(task);
});
console.log(this.taskslist);
this.expedienteStorage.reset(this.taskslist);
this.skeletonLoader = false;
} catch (error) {
this.toastService.badRequest('Processo não encontrado')
this.goBack()