Skip to content
Snippets Groups Projects
Commit 84750a19 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13529 TIME 0:10 do not save avis user in avis circuit (parallel avis)

parent 4a297f9d
No related branches found
No related tags found
No related merge requests found
...@@ -51,20 +51,14 @@ export class SendAvisParallelComponent implements AfterViewInit { ...@@ -51,20 +51,14 @@ export class SendAvisParallelComponent implements AfterViewInit {
this.loading = true; this.loading = true;
if (this.data.resIds.length === 0) { if (this.data.resIds.length === 0) {
let res = await this.indexDocument(); let res = await this.indexDocument();
if (res) {
res = await this.appAvisWorkflow.saveAvisWorkflow(this.data.resIds);
}
if (res) { if (res) {
this.executeAction(this.data.resIds); this.executeAction(this.data.resIds);
} }
} else { } else {
const realResSelected: number[] = this.data.resIds.filter((resId: any) => this.resourcesError.map(resErr => resErr.res_id).indexOf(resId) === -1); const realResSelected: number[] = this.data.resIds.filter((resId: any) => this.resourcesError.map(resErr => resErr.res_id).indexOf(resId) === -1);
const res = await this.appAvisWorkflow.saveAvisWorkflow(realResSelected); this.executeAction(realResSelected);
if (res) {
this.executeAction(realResSelected);
}
} }
this.loading = false; this.loading = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment