master^2
Bhaskar 2 months ago
parent 0911022dab
commit 7d15a3a840

@ -440,7 +440,7 @@ exports.changePassword = async (req, reply) => {
latitude: updatedUser.latitude, latitude: updatedUser.latitude,
longitude: updatedUser.longitude, longitude: updatedUser.longitude,
type: updatedUser.profile.role, type: updatedUser.profile.role,
loginType: updatedUser.profile.role[0], loginType: updatedUser.profile.role[0],
typeasobj: updatedUser.profile.role.reduce((obj, role, index) => { typeasobj: updatedUser.profile.role.reduce((obj, role, index) => {
obj[index] = role; obj[index] = role;
return obj; return obj;

Loading…
Cancel
Save