Skip to content

Commit

Permalink
Merge pull request #100 from tsprasath/updateApiIssueFixed
Browse files Browse the repository at this point in the history
UPHRH ISSUE 4899 While editing the batch for PIAA assessment, Udate api is throwing 404 error issue fixed
  • Loading branch information
sohailamjad12 authored May 24, 2023
2 parents 0418565 + a0a2e16 commit 54aa9fa
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class UpdateCourseBatchComponent implements OnInit, OnDestroy, AfterViewI
let participants = [];
const selectedMentors = [];
let mentors = this.batchUpdateForm.value.mentors || [];
if (this.batchUpdateForm.value.enrollmentType !== 'open') {
if (this.batchUpdateForm.value.enrollmentType !== 'open' && this.batchUpdateForm.value.enrollmentType !== 'invite-only') {
participants = this.batchUpdateForm.value.users || [];
}
const startDate = dayjs(this.batchUpdateForm.value.startDate).format('YYYY-MM-DD');
Expand All @@ -454,10 +454,10 @@ export class UpdateCourseBatchComponent implements OnInit, OnDestroy, AfterViewI
if (this.removedUsers && this.removedUsers.length > 0) {
requests.push(this.removeParticipantFromBatch(this.batchId, this.removedUsers));
}
// if (participants && participants.length > 0) {
// requests.push(this.addParticipantToBatch(this.batchId, participants));
// console.log('aaaa',requests)
// }
if (participants && participants.length > 0) {
requests.push(this.addParticipantToBatch(this.batchId, participants));
console.log('aaaa',requests)
}

forkJoin(requests).subscribe(results => {
// this.disableSubmitBtn = false;
Expand Down

0 comments on commit 54aa9fa

Please sign in to comment.