Skip to content

Commit

Permalink
Merge pull request #543 from NandiniAV/cbrelease-4.8.15
Browse files Browse the repository at this point in the history
Updated pending requests API integration
  • Loading branch information
vishnubansaltarento authored Jun 25, 2024
2 parents b9c3300 + 887739d commit 869fde2
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes
.subscribe((res: any) => {
this.lastUploadList = res.result.content.sort((a: any, b: any) =>
new Date(b.datecreatedon).getTime() - new Date(a.datecreatedon).getTime())
}, (error: HttpErrorResponse) => {
// tslint:disable-next-line
}, (error: HttpErrorResponse) => {
if (!error.ok) {
this.matSnackBar.open('Unable to get Bulk status list')
}
Expand Down Expand Up @@ -117,7 +118,8 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes
if (!resendFlag) {
this.verifyOTP(contactType)
}
}, (error: HttpErrorResponse) => {
// tslint:disable-next-line
}, (error: HttpErrorResponse) => {
if (!error.ok) {
this.matSnackBar.open(_.get(error, 'error.params.errmsg') || `Unable to send OTP to your ${contactType}, please try again later!`)
}
Expand Down Expand Up @@ -170,7 +172,8 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes
this.fileName = ''
this.fileSelected = ''
this.getBulkStatusList()
}, (_err: HttpErrorResponse) => {
// tslint:disable-next-line
}, (_err: HttpErrorResponse) => {
if (!_err.ok) {
this.matSnackBar.open('Uploading CSV file failed due to some error, please try again later!')
}
Expand Down Expand Up @@ -198,6 +201,11 @@ export class BulkUploadApprovalComponent implements OnInit, AfterViewInit, OnDes
if (res) {
// console.log('*********************', res)
}
// tslint:disable-next-line
}, (error: HttpErrorResponse) => {
if (!error.ok) {
this.matSnackBar.open(error.error.text)
}
})
}

Expand Down

0 comments on commit 869fde2

Please sign in to comment.