src/app/core/user/user.model.ts
File user.model.ts
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import crypto, { BinaryLike } from 'crypto';
import _ from 'lodash';
import mongoose, {
HydratedDocument,
Function auditCopy
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UserSchema.methods.auditCopy = function (userIP?: string) {
const toReturn: Record<string, unknown> = {};
const asObject = this.toObject();