Skip to content

Commit

Permalink
Adding profile status verified and non-verified condition (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-tarento authored May 27, 2024
1 parent 96dfbad commit 15020ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/protectedApi_v8/user/profile-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ profileDeatailsApi.post('/createUser', async (req, res) => {
pinCode: Number(sbpincode_),
primaryEmail: sbemail_,
},
profileStatus: 'NOT-VERIFIED',
},
userId: sbUserId,
}
Expand Down Expand Up @@ -432,6 +431,12 @@ profileDeatailsApi.post('/createUser', async (req, res) => {
sbProfileUpdateReq.profileDetails[additionalPropertiesPropertyName] = objAdditionalProperties
}

const profileStatusPropertyName = 'profileStatus'
if ((sbdesignation_ !== undefined && sbdesignation_ !== '') && (sbgroup_ !== undefined && sbgroup_ !== '')) {
sbProfileUpdateReq.profileDetails[profileStatusPropertyName] = 'VERIFIED'
} else {
sbProfileUpdateReq.profileDetails[profileStatusPropertyName] = 'NOT-VERIFIED'
}
const sbUserProfileUpdateResp = await axios({
...axiosRequestConfig,
data: { request: sbProfileUpdateReq },
Expand Down

0 comments on commit 15020ad

Please sign in to comment.