lender and product issue fixed

This commit is contained in:
bitbucket 2022-04-08 10:11:16 +05:30
parent a55e370654
commit 7c96d01078
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -101,7 +101,7 @@ private apiUrl = environment.apiEndpoint;
} }
savedetails(formValues: any): Observable<any>{ 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> { getLenderMasterListDetails(): Observable<any> {
return this._http.get<any[]>(this.apiUrl + "getListOfLenders"); return this._http.get<any[]>(this.apiUrl + "getListOfLenders");