Showing 3 of 151 total issues
Function buildAutoMethods
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildAutoMethods (client, model) {
return {
client () {
return client
},
Function restoreTimestamps
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function restoreTimestamps (data, instance) {
const timestampFields = ['createdAt', 'updatedAt', 'deletedAt']
for (const field of timestampFields) {
const value = data[field]
Function buildManualMethods
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function buildManualMethods (client, model, customKey) {
return {
client () {
return client
},