Last user activity now marked on humie-friendly page-loads and last-socket disconnects, ensuring accurate 'online' status when disconnected from a channel.

This commit is contained in:
rainbow napkin 2025-09-17 20:17:41 -04:00
parent 6222535c47
commit 6445950f90
7 changed files with 99 additions and 2 deletions

View file

@ -60,6 +60,11 @@ const userSchema = new mongoose.Schema({
required: true,
default: new Date()
},
lastActive: {
type: mongoose.SchemaTypes.Date,
required: true,
default: new Date()
},
rank: {
type: mongoose.SchemaTypes.String,
required: true,