summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
authorWu Cheng-Han2016-07-30 11:15:44 +0800
committerWu Cheng-Han2016-07-30 11:15:44 +0800
commit44fd0a617b3135720079f69dd522f6e25154ec36 (patch)
treed20faab0ac446e1c4f5ef07efdd95087d85bdd6c /lib/models
parentb5d3570b1ab477792a839dadb4dbb5a5057297e6 (diff)
Fix typo
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/revision.js2
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