lib/api/apis.js
Function all
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const all = (query, models, next) => {
const organize = utils.organize(query);
const mods = _.cloneDeep(models) || [];
return database.transaction(trx => {
- Create a ticketCreate a ticket
Function ofType
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ofType = (query, model, models) => {
const organize = utils.organize(query);
const mods = _.cloneDeep(models) || [];
let attrs = [];
- Create a ticketCreate a ticket
Function types
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const types = app => {
let cts = _.cloneDeep(app.get('content-types')).map(ct => {
const type = {};
Object.keys(ct).forEach(attr => {
- Create a ticketCreate a ticket