This commit is contained in:
tiago.kayaya
2021-05-28 16:57:00 +01:00
parent 613dbdb666
commit 5a8296dbc4
@@ -171,7 +171,6 @@ export class DiplomaPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise()
this.close();
this.successMessage()
} catch (error) {
this.badRequest()
@@ -179,6 +178,7 @@ export class DiplomaPage implements OnInit {
}
async finish(note:string, documents:any){
let body = {
"serialNumber": this.serialnumber,
"action": "Concluir",
@@ -189,9 +189,8 @@ export class DiplomaPage implements OnInit {
"AttachmentList" :documents,
}
try {
await this.processes.CompleteTask(body);
await this.processes.CompleteTask(body).toPromise();
this.successMessage()
this.close();
} catch (error) {
this.badRequest()
}