Add traps; user registration
This commit is contained in:
@@ -23,7 +23,7 @@ class SettingModel extends Model {
|
||||
|
||||
static async get(key) {
|
||||
const inst = await this.findOne({ key })
|
||||
return inst.get()
|
||||
return inst?.get()
|
||||
}
|
||||
|
||||
static async set(key, value) {
|
||||
|
||||
@@ -35,6 +35,7 @@ class User extends AuthUser {
|
||||
mfa_enable_date: Date,
|
||||
create_date: {type: Date, default: () => new Date},
|
||||
photo_file_id: String,
|
||||
trap: String,
|
||||
}}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user