From 49c0569ff878de8982097d6031aa16dbe080d684 Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 8 Dec 2023 14:36:42 +0200 Subject: [PATCH] [develop | DONE | FIXED] : Claims: fix check about status when there is a direct index insertion job --- claims/linking/insertClaim/insertClaim.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/claims/linking/insertClaim/insertClaim.component.ts b/claims/linking/insertClaim/insertClaim.component.ts index 1a2ec67f..a2be4b98 100644 --- a/claims/linking/insertClaim/insertClaim.component.ts +++ b/claims/linking/insertClaim/insertClaim.component.ts @@ -557,8 +557,8 @@ export class ClaimInsertComponent { getStatus(){ if(this.feedRecordsJob && ! (this.feedRecordsJob.status == "COMPLETE" || this.feedRecordsJob.status == "ERROR") ) { this.subscriptions.push(this.claimService.getStatus(this.feedRecordsJob.id, this.properties.claimsAPIURL).subscribe(data => { - console.log("feed", data); this.feedRecordsJob = data.data; + // console.log("feed", this.feedRecordsJob.status); if (this.feedRecordsJob.status == "COMPLETE" || data.data.status == "ERROR") { this.insertedRecords = this.feedRecordsJob.insertedIds; this.errorInRecords = this.feedRecordsJob.errorInClaims; @@ -577,9 +577,9 @@ export class ClaimInsertComponent { } if(this.claimsJob) { this.subscriptions.push(this.claimService.getStatus(this.claimsJob.id, this.properties.claimsAPIURL).subscribe(data => { - console.log("claim", data); this.claimsJob = data.data; - if ((this.claimsJob.status == "COMPLETE" || data.data.status == "ERROR") && ( !this.feedRecordsJob || !(this.feedRecordsJob.status == "COMPLETE" || data.data.status == "ERROR")) ) { + // console.log("claim: ", this.claimsJob.status, this.feedRecordsJob.status?this.feedRecordsJob.status:" no feed job"); + if ((this.claimsJob.status == "COMPLETE" || data.data.status == "ERROR") && ( !this.feedRecordsJob || (this.feedRecordsJob.status == "COMPLETE" || data.data.status == "ERROR")) ) { this.insertedClaims = this.claimsJob.insertedIds; this.errorInClaims = this.claimsJob.errorInClaims;