aboutsummaryrefslogtreecommitdiffstats
path: root/models/User.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/User.js')
-rw-r--r--models/User.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/User.js b/models/User.js
index ecc54cd..fa3303f 100644
--- a/models/User.js
+++ b/models/User.js
@@ -98,6 +98,8 @@ userSchema.pre('save', async function(next){
user.password = await bcrypt.hash(user.password, 8);
}
+ user.updated_at = Date.now()
+
next()
})