src/server/app/audit/services/audit.server.service.js
Function audit
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.audit = function(message, eventType, eventAction, eventActor, eventObject, eventMetadata) {
let Audit = dbs.admin.model('Audit');
let utilService = deps.utilService;
// Extract additional metadata to audit
Function audit
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
module.exports.audit = function(message, eventType, eventAction, eventActor, eventObject, eventMetadata) {