Add traps; user registration

This commit is contained in:
garrettmills
2020-05-20 09:56:03 -05:00
parent 7663cea2ea
commit ea77402750
19 changed files with 493 additions and 24 deletions

View File

@@ -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) {

View File

@@ -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,
}}
}