feat: add POST /api/v1/installation/users to seed user
This commit is contained in:
@@ -45,6 +45,10 @@ class Role extends Base {
|
||||
get isAdmin() {
|
||||
return this.key === 'admin';
|
||||
}
|
||||
|
||||
static async findAdmin() {
|
||||
return await this.query().findOne({ key: 'admin' });
|
||||
}
|
||||
}
|
||||
|
||||
export default Role;
|
||||
|
Reference in New Issue
Block a user