mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fix multiples API calls and methods
This commit is contained in:
+6
-5
@@ -57,7 +57,7 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
"DocumentURL": result.formURL
|
||||
}
|
||||
this.fulltask = result;
|
||||
console.log(result);
|
||||
/* console.log(result); */
|
||||
|
||||
});
|
||||
}
|
||||
@@ -66,14 +66,15 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
{
|
||||
if (this.eventsList == null)
|
||||
{
|
||||
this.attachments.getAttachments(2, serial).subscribe(result => {
|
||||
result.forEach(att =>{
|
||||
if (this.eventsList == null)
|
||||
{
|
||||
this.attachments.getAttachmentsBySerial(serial).subscribe(res => {
|
||||
console.log(res);
|
||||
res.forEach(att =>{
|
||||
if (this.eventsList == null){
|
||||
this.eventsList = new Array();
|
||||
}
|
||||
this.events.getEvent(att.ParentId).subscribe(event => {
|
||||
this.eventsList.push(event);
|
||||
console.log(this.eventsList);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user