Skip to content

Commit

Permalink
updating the pincode field (#368)
Browse files Browse the repository at this point in the history
* updating the pincode field

* updating the pincode field
  • Loading branch information
Sahil-tarento authored May 29, 2024
1 parent 15020ad commit ae2c8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protectedApi_v8/user/profile-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ profileDeatailsApi.post('/createUser', async (req, res) => {
profileDetails: {
employmentDetails: {
departmentName: sbChannel,
pinCode: Number(sbpincode_),
},
mandatoryFieldsExists: false,
personalDetails: {
Expand All @@ -374,7 +375,6 @@ profileDeatailsApi.post('/createUser', async (req, res) => {
gender: sbgender_,
mobile: Number(sbphone_),
phoneVerified: sbphoneVerified_,
pinCode: Number(sbpincode_),
primaryEmail: sbemail_,
},
},
Expand All @@ -397,7 +397,7 @@ profileDeatailsApi.post('/createUser', async (req, res) => {
}
if (sbpincode_ === undefined || sbpincode_ === '') {
// tslint:disable-next-line: all
sbProfileUpdateReq.profileDetails.personalDetails = _.omit(sbProfileUpdateReq.profileDetails.personalDetails, 'pinCode')
sbProfileUpdateReq.profileDetails.employmentDetails = _.omit(sbProfileUpdateReq.profileDetails.employmentDetails, 'pinCode')
}
if (sbgender_ === undefined || sbgender_ === '') {
// tslint:disable-next-line: all
Expand Down

0 comments on commit ae2c8ac

Please sign in to comment.