het probleem is dat uw pijlfunctie lexicale deze https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
wijzigen
userSchema.pre("save", (next) => {
const currentDate = new Date
this.updated_at = currentDate.now
next()
})
naar
userSchema.pre("save", function (next) {
const currentDate = new Date()
this.updated_at = currentDate.now
next()
})