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) {
|
||||
|
||||
Reference in New Issue
Block a user