Model.mongoose.findeOne change to Model.monooose.updateOne

need help. I have this code

import timeConvert from "./timezone.js";

const time = async (chatId, time) => {
  const availableUser = await User.findOne({ chatId: chatId });
  const { latitude, longitude } = availableUser.location;
  if (availableUser) {
    availableUser.time = timeConvert(time, latitude, longitude);
    return await availableUser.save();
  }
};

export default time;

and need to change User.findOne to User.updateOne without change any logic. I mean this code wirking but need to use User.updateOne. I know syntax of updateOne but I dont know how update timeConvert with legal way