Profile pages now display user status.
This commit is contained in:
parent
6445950f90
commit
1384b02f4d
11 changed files with 119 additions and 5 deletions
|
|
@ -63,7 +63,7 @@ const userSchema = new mongoose.Schema({
|
|||
lastActive: {
|
||||
type: mongoose.SchemaTypes.Date,
|
||||
required: true,
|
||||
default: new Date()
|
||||
default: new Date(0)
|
||||
},
|
||||
rank: {
|
||||
type: mongoose.SchemaTypes.String,
|
||||
|
|
@ -505,6 +505,7 @@ userSchema.methods.getProfile = function(includeEmail = false){
|
|||
id: this.id,
|
||||
user: this.user,
|
||||
date: this.date,
|
||||
lastActive: this.lastActive,
|
||||
tokes: this.tokes,
|
||||
tokeCount: this.getTokeCount(),
|
||||
img: this.img,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue