ソースを参照

Change wrong variable name

sbkwgh 8 年 前
コミット
e1a26d56b5
1 ファイル変更3 行追加3 行削除
  1. 3 3
      models/MentionNotification.js

+ 3 - 3
models/MentionNotification.js

@@ -2,9 +2,9 @@ module.exports = (sequelize, DataTypes) => {
 	let MentionNotification = sequelize.define('MentionNotification', {}, {
 		classMethods: {
 			associate (models) {
-				Notification.belongsTo(models.User)
-				Notification.belongsTo(models.Post)
-				Notification.belongsTo(models.Notification)
+				MentionNotification.belongsTo(models.User)
+				MentionNotification.belongsTo(models.Post)
+				MentionNotification.belongsTo(models.Notification)
 			}
 		}
 	})