made changes in update current user

master
varun 3 years ago
parent c40508c6c8
commit ff374bd7ea

@ -145,7 +145,7 @@ exports.getTanklevels = async (req, reply) => {
let Number = capacity-100 //Math.floor(Math.random() * capacity)
console.log(Number)
//console.log(Number)
setInterval(async function () {
// const randomNumber = Math.floor(Math.random() * capacity)
//const randomNumber = Math.floor(Math.random() * (5500 - 1000) + 1000);

@ -118,7 +118,8 @@ exports.editCuurentUserInfo = async (req, reply) => {
if (updateData.country) userInfo.profile.country = updateData.country;
if (updateData.zip) userInfo.profile.zip = updateData.zip;
if (updateData.phone) userInfo.phone = updateData.phone;
if (updateData.email) userInfo.emails[0].email = updateData.email;
if (updateData.emails) userInfo.emails = updateData.emails;
console.log(userInfo.emails[0].email)
if (updateData.role) userInfo.profile.role = updateData.role;
if (updateData.phone) {

Loading…
Cancel
Save