From 44fd0a617b3135720079f69dd522f6e25154ec36 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 30 Jul 2016 11:15:44 +0800 Subject: [PATCH] Fix typo --- lib/models/revision.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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