diff options
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/revision.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/revision.js b/lib/models/revision.js index 5300d725..bb89782f 100644 --- a/lib/models/revision.js +++ b/lib/models/revision.js @@ -34,7 +34,7 @@ module.exports = function (sequelize, DataTypes) { }, { classMethods: { associate: function (models) { - Revision.belongsTo(models.User, { + Revision.belongsTo(models.Note, { foreignKey: "noteId", as: "note", constraints: false |