From d02369a3b4992a85a6062635200d806dc73acff5 Mon Sep 17 00:00:00 2001 From: Sean Sica <23294618+seansica@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:24:21 -0400 Subject: [PATCH] Pass the Matrix model to the superclass via super instead of setting this.model in the subclass --- app/repository/matrix-repository.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/repository/matrix-repository.js b/app/repository/matrix-repository.js index f974117f..20e37a62 100644 --- a/app/repository/matrix-repository.js +++ b/app/repository/matrix-repository.js @@ -6,8 +6,8 @@ const Matrix = require('../models/matrix-model'); class MatrixRepository extends BaseRepository { constructor() { - super(); - this.model = Matrix; + super(Matrix); + // this.model = Matrix; } }