Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
@InjectModel('Definition')
private readonly definitionModel: Model,
) {}
constructor(
@InjectModel(UserSchema) private readonly userModel: Model,
) {}
constructor(
@InjectModel(BuildDefinitionSchema) private readonly buildDefinitionModel: Model,
) {}
constructor(
@InjectModel("User")
protected readonly model: Model,
@InjectModel("Profile")
protected readonly profileModel: Model,
@InjectModel("VeryCode")
private readonly veryCodeModel: Model
) {
super(model);
}
constructor(
@InjectModel("Setting") protected readonly model: Model
) {
super(model);
}
constructor(
@InjectTypegoose(User) private readonly userModel: ModelType,
@InjectModel('Achievement') private readonly achievementModel: Model,
@InjectModel('Category') private readonly categoryModel: Model,
) { }
constructor(
@InjectModel('User')
protected readonly model: Model,
) {
this.install = new Installer(model.db);
}
constructor(@InjectModel(REPO_MODEL_NAME) private readonly userModel: Model) { }
constructor(@InjectModel('User') private readonly userModel: Model,
@InjectModel('EmailVerification') private readonly emailVerificationModel: Model,
@InjectModel('ForgottenPassword') private readonly forgottenPasswordModel: Model,
@InjectModel('ConsentRegistry') private readonly consentRegistryModel: Model,
private readonly jwtService: JWTService) {}
constructor(
@InjectModel(User.modelName) private readonly userModel: ModelType,
) {
super();
this._model = userModel;
}