diff options
author | Wu Cheng-Han | 2016-07-30 11:15:44 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-07-30 11:15:44 +0800 |
commit | 44fd0a617b3135720079f69dd522f6e25154ec36 (patch) | |
tree | d20faab0ac446e1c4f5ef07efdd95087d85bdd6c /lib | |
parent | b5d3570b1ab477792a839dadb4dbb5a5057297e6 (diff) |
Fix typo
Diffstat (limited to '')
-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 |