Fix typo
This commit is contained in:
parent
b5d3570b1a
commit
44fd0a617b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ module.exports = function (sequelize, DataTypes) {
|
||||||
}, {
|
}, {
|
||||||
classMethods: {
|
classMethods: {
|
||||||
associate: function (models) {
|
associate: function (models) {
|
||||||
Revision.belongsTo(models.User, {
|
Revision.belongsTo(models.Note, {
|
||||||
foreignKey: "noteId",
|
foreignKey: "noteId",
|
||||||
as: "note",
|
as: "note",
|
||||||
constraints: false
|
constraints: false
|
||||||
|
|
Loading…
Reference in a new issue