From 67e3567694f4b81d5f7d93dce74a2efa2b6782cd Mon Sep 17 00:00:00 2001 From: Mike Keen Date: Mon, 3 Jan 2022 20:35:14 -0500 Subject: [PATCH] feat: qualifications plural --- src/models/units/units.model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/units/units.model.js b/src/models/units/units.model.js index 114354ac..9b997ddf 100644 --- a/src/models/units/units.model.js +++ b/src/models/units/units.model.js @@ -17,7 +17,7 @@ class Unit extends Model { // https://gist.github.com/elliette/20ddc4e827efd9d62bc98752e7a62610#some-important-addendums Unit.belongsToMany(Qualification, { through: 'qualification_unit', - as: 'qualification', + as: 'qualifications', }); }