Merge branch 'master' of bitbucket.org:sriramv18/sparqsineedge

This commit is contained in:
surya 2022-04-08 11:06:53 +05:30
commit 92ba3e837c
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ export class LenderProductSegMappingComponent implements OnInit {
// console.log(formValues)
if (!this.checkDuplicateInObject(formValues.temp_lender)) {
console.log("worked")
this.masterService.savedetails(formValues).subscribe(
this.masterService.savedetails(params).subscribe(
dataresult => {
if (dataresult.status == 200) {
console.log(dataresult);

View File

@ -101,7 +101,7 @@ private apiUrl = environment.apiEndpoint;
}
savedetails(formValues: any): Observable<any>{
return this._http.post<any[]>(this.apiUrl + "saveTemplateMappingDetailsV2", {"records":{"entity_id":"5","product_id":formValues.temp_lender[0].fk_product_id,"customer_segment_id":formValues.temp_lender[0].fk_customer_segment}} );
return this._http.post<any[]>(this.apiUrl + "saveTemplateMappingDetailsV2",formValues );
}
getLenderMasterListDetails(): Observable<any> {
return this._http.get<any[]>(this.apiUrl + "getListOfLenders");