Server/_user.js
Function exports
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(options){
this.add('role:user, cmd:create', async function create( msg, respond) {
var user = this.make('users')
user.firstName = msg.firstName
user.lastName = msg.lastName
Function create
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
this.add('role:user, cmd:create', async function create( msg, respond) {
var user = this.make('users')
user.firstName = msg.firstName
user.lastName = msg.lastName
user.email = msg.email