Skip to content

Commit

Permalink
Pass repository to MatrixService via constructor rather than by injec…
Browse files Browse the repository at this point in the history
…ting via global module import
  • Loading branch information
seansica committed Nov 2, 2023
1 parent 7ca786c commit aacfee4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/services/matrices-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
const util = require('util');
const { GenericServiceError, MissingParameterError } = require('../exceptions');

// const Matrix = require('../models/matrix-model');
const matrixRepository = require('../repository/matrix-repository');

const BaseService = require('./_base.service');

class MatrixService extends BaseService {

constructor() {
super(matrixRepository);
constructor(repository) {
super(repository);

this.retrieveTacticById = null;
this.retrieveTechniquesForTactic = null;
Expand Down

0 comments on commit aacfee4

Please sign in to comment.