Skip to content

Commit

Permalink
Pass the Matrix model to the superclass via super instead of setting …
Browse files Browse the repository at this point in the history
…this.model in the subclass
  • Loading branch information
seansica committed Sep 27, 2023
1 parent 0f88a37 commit d02369a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/repository/matrix-repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const Matrix = require('../models/matrix-model');
class MatrixRepository extends BaseRepository {

constructor() {
super();
this.model = Matrix;
super(Matrix);
// this.model = Matrix;
}
}

Expand Down

0 comments on commit d02369a

Please sign in to comment.