i want to update points with his own current value and + and is not working i tried + 60 aswell and still not working how can i update points base on his current value with the new value given?
const updateUserPoints = async (id) => {
await Users.findByIdAndUpdate({ _id: id }, {
points: points + 60
})
console.log("updated user wit id " + id)
}