Comment all the things!

This commit is contained in:
2020-11-08 12:34:50 -06:00
parent 72f3923866
commit 06515b0559
73 changed files with 269 additions and 162 deletions

View File

@@ -17,6 +17,8 @@ const Model = require('flitter-auth/model/KeyAction')
*
* See: module:flitter-auth/SecurityContext~SecurityContext#keyaction
* See: module:flitter-auth/model/KeyAction~KeyAction
*
* This file was automatically generated by the Flitter Framework.
*/
class KeyAction extends Model {

View File

@@ -1,9 +1,13 @@
const AuthUser = require('flitter-auth/model/User')
/*
/**
* Auth user model. This inherits fields and methods from the default
* flitter-auth/model/User model, however you can override methods and
* properties here as you need.
*
* This file was automatically generated by the Flitter Framework.
*
* @extends AuthUser
*/
class User extends AuthUser {
static get services() {
@@ -17,6 +21,11 @@ class User extends AuthUser {
}
// Other members and methods here
/**
* Get the team associated with this user.
* @return {Promise<Team>}
*/
async team() {
const Team = this.models.get('Team')
return Team.getForUser(this)