Commit b3c6c8c2 by Muhammad Usman

default save service updated

parent 0eb6c1cd
......@@ -105,7 +105,7 @@ export class EducationComponent extends BaseComponent implements OnInit {
if (this.careerProfile.CompletedPercentageCH <= 60) {
this.careerProfile.CurrentProfileBuilderTab = CAREER_TABS.SKILLS;
}
this.personalDetailsService.saveProfile(this.createdObjs, this.updatedObjs, this.deletedObjs)
this.personalDetailsService.saveProfileDefault(this.createdObjs, this.updatedObjs, this.deletedObjs)
.pipe(takeUntil(this.componentInView))
.subscribe(res => {
this.isSaving = false;
......
......@@ -46,7 +46,7 @@ export class PublishComponent extends BaseComponent implements OnInit {
saveProfile(): void {
this.isSaving = true;
this.personalDetailsService.saveProfile(this.createdObjs, this.updatedObjs, this.deletedObjs)
this.personalDetailsService.saveProfileDefault(this.createdObjs, this.updatedObjs, this.deletedObjs)
.pipe(takeUntil(this.componentInView))
.subscribe(res => {
this.isSaving = false;
......
......@@ -98,7 +98,7 @@ export class ReferencesComponent extends BaseComponent implements OnInit {
if (this.careerProfile.CompletedPercentageCH <= 80) {
this.careerProfile.CurrentProfileBuilderTab = CAREER_TABS.PUBLISH;
}
this.personalDetailsService.saveProfile(this.createdObjs, this.updatedObjs, this.deletedObjs)
this.personalDetailsService.saveProfileDefault(this.createdObjs, this.updatedObjs, this.deletedObjs)
.pipe(takeUntil(this.componentInView))
.subscribe(res => {
this.toasterService.success('References updated');
......
......@@ -106,7 +106,7 @@ export class SkillsComponent extends BaseComponent implements OnInit {
if (this.careerProfile.CompletedPercentageCH <= 60) {
this.careerProfile.CurrentProfileBuilderTab = CAREER_TABS.REFERENCES;
}
this.personalDetailsService.saveProfile(this.createdObjs, this.updatedObjs, this.deletedObjs)
this.personalDetailsService.saveProfileDefault(this.createdObjs, this.updatedObjs, this.deletedObjs)
.pipe(takeUntil(this.componentInView))
.subscribe(res => {
this.isSaving = false;
......
......@@ -109,7 +109,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
if (this.careerProfile.CompletedPercentageCH <= 40) {
this.careerProfile.CurrentProfileBuilderTab = CAREER_TABS.EDUCATION;
}
this.personalDetailsService.saveProfile(this.createdObjs, this.updatedObjs, this.deletedObjs)
this.personalDetailsService.saveProfileDefault(this.createdObjs, this.updatedObjs, this.deletedObjs)
.pipe(takeUntil(this.componentInView))
.subscribe(res => {
this.isSaving = false;
......
......@@ -91,4 +91,8 @@ export class PersonalDetailsService {
return this.saveService.saveObjects('svc/SavePersonalDetails',createdObjs, updatedObjs, deletedObjs);
}
saveProfileDefault(createdObjs, updatedObjs, deletedObjs): Observable<any> {
return this.saveService.saveObjectsWithDefaultSvc(createdObjs, updatedObjs, deletedObjs);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment