Showing 2 of 7 total issues
Function api
has 151 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function api(options) {
this.add('role:api, path:create', function (msg, respond) {
var firstName = {
verbose: 'Primeiro Nome',
field_name: 'firstName'
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