highLevel syncs across chans, shows in userlist
This commit is contained in:
parent
279640a7e7
commit
8ccb9003cc
8 changed files with 102 additions and 38 deletions
|
|
@ -77,6 +77,13 @@ const userSchema = new mongoose.Schema({
|
|||
required: true,
|
||||
default: "Signature not set!"
|
||||
},
|
||||
highLevel: {
|
||||
type: mongoose.SchemaTypes.Number,
|
||||
required: true,
|
||||
min: 0,
|
||||
max: 10,
|
||||
default: 0
|
||||
},
|
||||
flair: {
|
||||
type: mongoose.SchemaTypes.ObjectID,
|
||||
default: null,
|
||||
|
|
@ -93,8 +100,6 @@ userSchema.pre('save', async function (next){
|
|||
this.pass = hashUtil.hashPassword(this.pass);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//If the flair was changed
|
||||
if(this.isModified("flair")){
|
||||
//Get flair properties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue